23.7. slapi_ch_free_string()

Description

This function frees space previously allocated to a string. This function is similar to slapi_ch_free(), but the argument is the address of a string. This helps with compile time error checking.

Syntax

#include "slapi-plugin.h"
void slapi_ch_free_string( char **s );

Parameters

This function takes the following parameter:

s
Address of the string that you want to free. If NULL, no action occurs.
See Also

slapi_ch_free()