From 416a544a9ecdfb99a17b0768942db9fb2e76e251 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Dec 2008 23:18:54 +0000 Subject: [PATCH] fix one-time leak (non critical) --- clients/tools/common.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5