mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Plug one-time LDAPMessage leak
This commit is contained in:
parent
720aa4b77e
commit
77a7ef0adf
@ -75,7 +75,7 @@ main( int argc, char *argv[] )
|
||||
char *matcheddn = NULL, *text = NULL, **refs = NULL;
|
||||
LDAPControl **ctrls = NULL;
|
||||
int id, code;
|
||||
LDAPMessage *res;
|
||||
LDAPMessage *res = NULL;
|
||||
|
||||
tool_init( TOOL_EXOP );
|
||||
prog = lutil_progname( "ldapexop", argc, argv );
|
||||
@ -348,6 +348,8 @@ main( int argc, char *argv[] )
|
||||
|
||||
skip:
|
||||
/* disconnect from server */
|
||||
if ( res )
|
||||
ldap_msgfree( res );
|
||||
tool_unbind( ld );
|
||||
tool_destroy();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user