From: Howard Chu Date: Tue, 13 Jan 2015 19:51:56 +0000 (+0000) Subject: plug benign leak (coverity) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a69da18849e41838bf8895875f8157986b195993;p=openldap plug benign leak (coverity) --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 477a3b1220..2237433de2 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -187,6 +187,7 @@ handle_private_option( int i ) control ); usage(); } + ber_memfree( control ); break; case 'a': /* add */ diff --git a/clients/tools/ldapurl.c b/clients/tools/ldapurl.c index a4f4a2b7c2..a600a25e18 100644 --- a/clients/tools/ldapurl.c +++ b/clients/tools/ldapurl.c @@ -159,6 +159,7 @@ do_uri_explode( const char *uri ) printf( "extension: %s\n", lud->lud_exts[i] ); } } + ldap_free_urldesc( lud ); return 0; } diff --git a/clients/tools/ldapvc.c b/clients/tools/ldapvc.c index 2ec4cd9c11..b1c25bc02a 100644 --- a/clients/tools/ldapvc.c +++ b/clients/tools/ldapvc.c @@ -255,6 +255,8 @@ handle_private_option( int i ) fprintf( stderr, _("Invalid Verify Credentials extension name: %s\n"), control ); usage(); } + free( control ); + break; case 'a': /* request authzid */ req_authzid++;