]> git.sur5r.net Git - openldap/commitdiff
plug benign leak (coverity)
authorHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2015 19:51:56 +0000 (19:51 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2015 19:59:41 +0000 (19:59 +0000)
clients/tools/ldapmodify.c
clients/tools/ldapurl.c
clients/tools/ldapvc.c

index 477a3b12203a5ee93c8b6faaff1a9e2c51faff3b..2237433de2382c3ebdf8dc65aeee1a9a03fc4eff 100644 (file)
@@ -187,6 +187,7 @@ handle_private_option( int i )
                                control );
                        usage();
                }
+               ber_memfree( control );
                break;
 
        case 'a':       /* add */
index a4f4a2b7c2c7ce7bb317994c16f9132ba4557c66..a600a25e188b141810e4bedd063de816430fd458 100644 (file)
@@ -159,6 +159,7 @@ do_uri_explode( const char *uri )
                        printf( "extension: %s\n", lud->lud_exts[i] );
                }
        }
+       ldap_free_urldesc( lud );
 
        return 0;
 }
index 2ec4cd9c1173acad24a0ca6cae44d543c758b703..b1c25bc02a7381f206b487a23d18aca0c0bea924 100644 (file)
@@ -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++;