From bf5ecff6138b4966ccc4c98367e2246aa2cf42fc Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 27 Dec 1998 23:23:09 +0000 Subject: [PATCH] Plug addtional realBase memory leaks. --- servers/slapd/back-ldbm/search.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ); } } -- 2.39.5