Nikolay Sivov : oleaut32/tests: Fix a string leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Jan 17 10:59:39 CST 2011


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Jan 15 00:54:18 2011 +0300

oleaut32/tests: Fix a string leak (Valgrind).

---

 dlls/oleaut32/tests/typelib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 03eda3b..acc60f5 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -1847,6 +1847,7 @@ static void test_CreateTypeLib(void) {
     V_BSTR(&paramdescex.varDefaultValue) = SysAllocString(defaultW);
     hres = ICreateTypeInfo_AddFuncDesc(createti, 3, &funcdesc);
     ok(hres == S_OK, "got %08x\n", hres);
+    SysFreeString(V_BSTR(&paramdescex.varDefaultValue));
 
     hres = ITypeInfo2_GetFuncDesc(ti2, 3, &pfuncdesc);
     ok(hres == S_OK, "got %08x\n", hres);




More information about the wine-cvs mailing list