From 18bf64a726a1126633e412a6368203f4a6ba9c8d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 6 Sep 2010 03:09:54 +0000 Subject: [PATCH] plug one-time leak --- clients/tools/ldapsearch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index feb3158deb..a851feeb39 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1344,6 +1344,9 @@ getNextPage: if ( derefval.bv_val != NULL ) { ldap_memfree( derefval.bv_val ); } + if ( def_urlpre != NULL ) { + ber_memfree( def_urlpre ); + } if ( c ) { for ( ; save_nctrls-- > 0; ) { -- 2.39.5