]> git.sur5r.net Git - openldap/commitdiff
fix one-time leak (non critical)
authorPierangelo Masarati <ando@openldap.org>
Thu, 11 Dec 2008 23:18:54 +0000 (23:18 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 11 Dec 2008 23:18:54 +0000 (23:18 +0000)
clients/tools/common.c

index 60ce1faeaa4bfdf4f828442e3732d3492c8cb023..87f5ca37eaae43aae0d32447df4878ff03b916a1 100644 (file)
@@ -251,6 +251,14 @@ tool_destroy( void )
                pr_cookie.bv_val = NULL;
                pr_cookie.bv_len = 0;
        }
+
+       if ( binddn != NULL ) {
+               ber_memfree( binddn );
+       }
+
+       if ( passwd.bv_val != NULL ) {
+               ber_memfree( passwd.bv_val );
+       }
 }
 
 void