Back to index

lightning-sunbird  0.9+nobinonly
Functions
freevalues.c File Reference
#include "ldap-int.h"

Go to the source code of this file.

Functions

void LDAP_CALL ldap_value_free (char **vals)
void LDAP_CALL ldap_value_free_len (struct berval **vals)

Function Documentation

void LDAP_CALL ldap_value_free ( char **  vals)

Definition at line 49 of file freevalues.c.

{
       int    i;

       if ( vals == NULL )
              return;
       for ( i = 0; vals[i] != NULL; i++ )
              NSLDAPI_FREE( vals[i] );
       NSLDAPI_FREE( (char *) vals );
}

Here is the caller graph for this function:

Definition at line 62 of file freevalues.c.

{
       int    i;

       if ( vals == NULL )
              return;
       for ( i = 0; vals[i] != NULL; i++ ) {
              NSLDAPI_FREE( vals[i]->bv_val );
              NSLDAPI_FREE( vals[i] );
       }
       NSLDAPI_FREE( (char *) vals );
}