[PATCH 5/5] Fix a string leak (Valgrind)
Nikolay Sivov
nsivov at codeweavers.com
Fri Jan 14 15:54:18 CST 2011
---
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(¶mdescex.varDefaultValue) = SysAllocString(defaultW);
hres = ICreateTypeInfo_AddFuncDesc(createti, 3, &funcdesc);
ok(hres == S_OK, "got %08x\n", hres);
+ SysFreeString(V_BSTR(¶mdescex.varDefaultValue));
hres = ITypeInfo2_GetFuncDesc(ti2, 3, &pfuncdesc);
ok(hres == S_OK, "got %08x\n", hres);
--
1.5.6.5
--------------080708040907080205040709--
More information about the wine-patches
mailing list