[PATCH 3/4] hnetcfg/tests: Don't leak IEnumVARIANT reference in test_static_port_mapping_collection().
Paul Gofman
pgofman at codeweavers.com
Thu Feb 3 05:28:33 CST 2022
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/hnetcfg/tests/policy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/hnetcfg/tests/policy.c b/dlls/hnetcfg/tests/policy.c
index b6b353ac87d..f344019d1d3 100644
--- a/dlls/hnetcfg/tests/policy.c
+++ b/dlls/hnetcfg/tests/policy.c
@@ -188,6 +188,7 @@ static void test_static_port_mapping_collection( IStaticPortMappingCollection *p
hr = IUnknown_QueryInterface(unk, &IID_IEnumVARIANT, (void **)&enum_ports);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
+ IUnknown_Release( unk );
refcount2 = get_refcount((IUnknown *)ports);
ok(refcount2 == refcount, "Got unexpected refcount %u, refcount2 %u.\n", refcount, refcount2);
--
2.34.1
More information about the wine-devel
mailing list