From: Shweta Sodani Date: Tue, 23 Sep 2025 05:43:26 +0000 (+0530) Subject: nsswitch/libwbclient: Fix CID #1034858, #1034859, #1034860 Resource leak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98755a26fac7f2e43f61d1a962ca976afc06ceae;p=thirdparty%2Fsamba.git nsswitch/libwbclient: Fix CID #1034858, #1034859, #1034860 Resource leak Signed-off-by: Shweta Sodani Reviewed-by: Volker Lendecke Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Tue Sep 23 12:53:10 UTC 2025 on atb-devel-224 --- diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index a45ee59899f..7617adc56d4 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -700,8 +700,9 @@ static bool test_wbc_lookup_rids(struct torture_context *tctx) torture_assert_wbc_ok_goto_fail( tctx, ret, "%s", "wbcLookupRids for 544 and 545 failed"); - torture_assert_str_equal( + torture_assert_str_equal_goto( tctx, names[0], "Administrators", + ret, fail, "S-1-5-32-544 not mapped to 'Administrators'"); torture_assert_str_equal_goto_fail( tctx, names[1], "Users", "S-1-5-32-545 not mapped to 'Users'");