From: Kurt Zeilenga Date: Sun, 27 Dec 1998 23:23:09 +0000 (+0000) Subject: Plug addtional realBase memory leaks. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~852 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf5ecff6138b4966ccc4c98367e2246aa2cf42fc;p=openldap Plug addtional realBase memory leaks. --- diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index e88af1735f..0b488c0004 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -237,6 +237,10 @@ ldbm_back_search( nrefs > 0 ? rbuf : NULL, nentries ); idl_free( candidates ); free( rbuf ); + + if( realBase != NULL) { + free( realBase ); + } return( 0 ); } @@ -266,6 +270,10 @@ ldbm_back_search( cache_return_entry_r( &li->li_cache, e ); idl_free( candidates ); free( rbuf ); + + if( realBase != NULL) { + free( realBase ); + } return( 0 ); } }