]> git.sur5r.net Git - openldap/commitdiff
plug one-time leak
authorPierangelo Masarati <ando@openldap.org>
Mon, 6 Sep 2010 03:09:54 +0000 (03:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 6 Sep 2010 03:09:54 +0000 (03:09 +0000)
clients/tools/ldapsearch.c

index feb3158deb07f0a8d8bd274203beaab1b3af2f12..a851feeb39aa823c9606a39047b0709c29c43d9c 100644 (file)
@@ -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; ) {