Nikolay Sivov : wshom.ocx/tests: Fix a BSTR leak (Valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 16 07:56:27 CDT 2015


Module: wine
Branch: master
Commit: f44707cb110404e02be2e55a8fe41d675ef656f6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f44707cb110404e02be2e55a8fe41d675ef656f6

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Apr 15 07:44:19 2015 +0300

wshom.ocx/tests: Fix a BSTR leak (Valgrind).

---

 dlls/wshom.ocx/tests/wshom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wshom.ocx/tests/wshom.c b/dlls/wshom.ocx/tests/wshom.c
index ad0e0be..9591c5c 100644
--- a/dlls/wshom.ocx/tests/wshom.c
+++ b/dlls/wshom.ocx/tests/wshom.c
@@ -406,6 +406,7 @@ static void test_registry(void)
     hr = IWshShell3_RegRead(sh3, name, &value);
     ok(hr == S_OK, "got 0x%08x\n", hr);
     ok(V_VT(&value) == (VT_ARRAY|VT_VARIANT), "got 0x%x\n", V_VT(&value));
+    SysFreeString(name);
 
     dim = SafeArrayGetDim(V_ARRAY(&value));
     ok(dim == 1, "got %u\n", dim);




More information about the wine-cvs mailing list