ITS#9998 slapd-mtread: plug potential leak

This commit is contained in:
Howard Chu 2023-02-02 15:17:28 +00:00 committed by Quanah Gibson-Mount
parent 4a9e449b24
commit 17359b7463

View file

@ -528,6 +528,7 @@ do_random( LDAP *ld,
if ( rc ) {
tester_ldap_error( ld, "ldap_search_ext_s", NULL );
}
ldap_msgfree( res );
break;
}
@ -566,6 +567,7 @@ do_random( LDAP *ld,
default:
tester_ldap_error( ld, "ldap_search_ext_s", NULL );
ldap_msgfree( res );
break;
}