lrs_free_buffer

Example: lrs_free_bufferBuffer Functions

Frees the memory allocated for a buffer.

int lrs_free_buffer( char *buffer );
buffer A pointer to a buffer.

The lrs_free_buffer function frees the memory allocated for the specified buffer. The memory is allocated when you call the lrs_get_buffer_by_name or lrs_get_last_received_buffer functions.

CAUTION: Only use this function for freeing memory allocated by lrs_get_buffer_by_name or lrs_get_last_received_buffer. Do not use this function to free memory allocated by other functions.

This function is not recorded during a WinSock session; you must insert it into your script manually. After you retrieve a buffer using lrs_get_buffer_by_name or lrs_get_last_received_buffer, you should free the allocated memory using lrs_free_buffer, provided that you no longer need the buffer.

Return Values

Windows Sockets Return Values

Parameterization

You cannot use standard parameterization for any arguments in this function.