Frees storage allocated by L_SaneGetOptionValue.
#include "ltsane.h"
L_LTSANE_API L_INT L_SaneFreeMemory(buffer)
Pointer to the memory buffer
| Value | Meaning | 
|---|---|
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Call this function when your program no longer needs the memory buffer allocated by calling L_SaneGetOptionValue.
Support for SANE is only available in the Document and Medical Imaging toolkits.
Linux
For an example, refer to L_SaneAcquire.