Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_getfilter_free()

The 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.

Syntax

#include <ldap.h>
void ldap_getfilter_free( LDAPFiltDesc *lfdp );

Parameters

This function has the following parameters:

lfdp

Pointer to a LDAPFiltDesc structure.

Example

The following section of code frees the 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 );
...

See Also

ldap_init_getfilter(), ldap_init_getfilter_buf().


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23