From: Howard Chu Date: Thu, 2 Feb 2023 15:18:24 +0000 (+0000) Subject: ITS#9999 slapd-search: plug potential leak X-Git-Tag: OPENLDAP_REL_ENG_2_6_5~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48ce1b2132c507ea91d338172e69894d22c1704a;p=thirdparty%2Fopenldap.git ITS#9999 slapd-search: plug potential leak --- diff --git a/tests/progs/slapd-search.c b/tests/progs/slapd-search.c index 13a2818885..f849199967 100644 --- a/tests/progs/slapd-search.c +++ b/tests/progs/slapd-search.c @@ -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; }