From 85c109afaf8aa56ff114bf75fc2ce206358f5b2f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 2 Feb 2023 15:18:24 +0000 Subject: [PATCH] ITS#9999 slapd-search: plug potential leak --- tests/progs/slapd-search.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.3