From: Pierangelo Masarati Date: Thu, 11 Dec 2008 23:18:54 +0000 (+0000) Subject: fix one-time leak (non critical) X-Git-Tag: ACLCHECK_0~1028 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=416a544a9ecdfb99a17b0768942db9fb2e76e251;p=openldap fix one-time leak (non critical) --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 60ce1faeaa..87f5ca37ea 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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