mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
make sure msg is freed
This commit is contained in:
parent
194f18f0fb
commit
cef31a77a7
@ -182,7 +182,6 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
rc = ldap_parse_whoami( ld, res, &authzid );
|
||||
ldap_msgfree(res);
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
tool_perror( "ldap_parse_whoami", rc, NULL, NULL, NULL, NULL );
|
||||
@ -199,6 +198,7 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
skip:
|
||||
ldap_msgfree(res);
|
||||
if ( verbose || ( code != LDAP_SUCCESS ) ||
|
||||
matcheddn || text || refs || ctrls )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user