From: Pierangelo Masarati Date: Mon, 6 Sep 2010 03:09:54 +0000 (+0000) Subject: plug one-time leak X-Git-Tag: MIGRATION_CVS2GIT~498 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18bf64a726a1126633e412a6368203f4a6ba9c8d;p=openldap plug one-time leak --- 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; ) {