ldap_getfilter_free() function frees the memory used by a filter set. Once you call this routine, the LDAPFiltDesc structure is no longer valid and cannot be used again. For more information, see "Freeing Filters from Memory" on page 165.
#include <ldap.h>
void ldap_getfilter_free( LDAPFiltDesc *lfdp );
lfdp |
Pointer to a |
LDAPFiltDesc structure from memory after all searches are completed.
#include <ldap.h>
...
LDAPFiltDesc *lfdp;
char *filter_file = "myfilters.conf";
...
/* Read the filter configuration file into an LDAPFiltDesc structure */
lfdp = ldap_init_getfilter( filter_file );
...
/* Retrieve filters and perform searches */
...
/* Free the configuration file (the LDAPFiltDesc structure) */
ldap_getfilter_free( lfdp );
...
ldap_init_getfilter(), ldap_init_getfilter_buf().
Last Updated: 10/01/98 17:06:23