srv_free

Frees memory allocated with srv_alloc or srv_config_alloc.

Syntax

int srv_free ( void * ptr );

where

ptr
Is a pointer to the source of the data to be freed.

Returns

SUCCEED if the memory was successfully freed; otherwise, FAIL.

Remarks

Memory allocated with srv_alloc or srv_config_alloc is not freed unless you free it using srv_free. The srv_free function is provided for backward compatibility with earlier versions of Open Data Services. It is equivalent to the Win32 GlobalFree function.

See Also

This entry For information about
srv_alloc Allocating memory dynamically
srv_config_alloc Allocating an SRV_CONFIG structure