ITS#9999 slapd-search: plug potential leak

This commit is contained in:
Howard Chu 2023-02-02 15:18:24 +00:00 committed by Quanah Gibson-Mount
parent 2b178d5575
commit 48ce1b2132

View File

@ -214,6 +214,7 @@ do_random( struct tester_conn_args *config,
if ( rc ) {
tester_ldap_error( ld, "ldap_search_ext_s", NULL );
}
ldap_msgfree( res );
break;
}
@ -270,6 +271,7 @@ do_random( struct tester_conn_args *config,
default:
tester_ldap_error( ld, "ldap_search_ext_s", NULL );
ldap_msgfree( res );
break;
}