Import getfilter() double free() bug fix from -devel

This commit is contained in:
Kurt Zeilenga 1999-02-03 17:39:07 +00:00
parent 5d93af75de
commit 4ed4e8b3df
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,8 @@ Changes included in OpenLDAP 1.2
Fixed -lldap/ldap_init() bug
Fixed -lldap/ldap_sort_entries() zero entries bug
Fixed slapd/slap_op memory/lock leak bug
Fixed slapd/back-ldbm IDL delete from ALLIDS bug
Fixed slapd/getfilter double free() bug
Updated slapd/back-ldbm/id2children has_children logging
Updated slapd/back-ldbm IDList handling
Updated ldap_open(3) man page to note ldap_init() is preferred.

View file

@ -47,7 +47,6 @@ get_filter( Connection *conn, BerElement *ber, Filter **filt, char **fstr )
*/
f = (Filter *) ch_malloc( sizeof(Filter) );
*filt = f;
f->f_next = NULL;
err = 0;
@ -175,6 +174,8 @@ get_filter( Connection *conn, BerElement *ber, Filter **filt, char **fstr )
if ( *fstr != NULL ) {
free( *fstr );
}
} else {
*filt = f;
}
Debug( LDAP_DEBUG_FILTER, "end get_filter %d\n", err, 0, 0 );