]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nsswitch/libwbclient: Fix CID #1034861 Resource leak
authorShweta Sodani <ssodani@redhat.com>
Fri, 19 Sep 2025 13:11:49 +0000 (18:41 +0530)
committerAnoop C S <anoopcs@samba.org>
Mon, 22 Sep 2025 14:46:13 +0000 (14:46 +0000)
Signed-off-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Sep 22 14:46:13 UTC 2025 on atb-devel-224

nsswitch/libwbclient/tests/wbclient.c

index a58e65023da06f6dba3cfc8a950db8c3426c0655..a45ee59899f85fc7de3fc7f068a154bfb7ce58fe 100644 (file)
@@ -648,6 +648,7 @@ static bool test_wbc_resolve_winsbyname(struct torture_context *tctx)
                torture_assert_wbc_ok(tctx, ret, "wbcResolveWinsByName for %s failed", name);
        }
 
+       wbcFreeMemory(ip);
        return true;
 }