From eb0566972ae7e00d97cb16fec80de889e6e1b505 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Wed, 18 Jun 2008 18:27:04 -0700 Subject: [PATCH] oleaut32/tests: Fix invalid free (found by valgrind). --- dlls/oleaut32/tests/vartype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index c2bc231d596..19e33bcfea5 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -5780,7 +5780,7 @@ static void test_ClearCustData(void) * its memory, while Wine uses HeapAlloc(). Doing this ensures we allocate * using the correct function whether with native or builtin. */ - ci.prgCustData = (LPCUSTDATAITEM)SysAllocStringByteLen((LPCSTR)buff, sizeof(buff)); + ci.prgCustData = (LPCUSTDATAITEM)Get(SysAllocStringByteLen((LPCSTR)buff, sizeof(buff))); for (i = 0; i < NUM_CUST_ITEMS; i++) VariantInit(&ci.prgCustData[i].varValue); pClearCustData(&ci); -- 2.11.4.GIT