Module: wine Branch: master Commit: eb0566972ae7e00d97cb16fec80de889e6e1b505 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb0566972ae7e00d97cb16fec8...
Author: Jon Griffiths jon_p_griffiths@yahoo.com Date: Wed Jun 18 18:27:04 2008 -0700
oleaut32/tests: Fix invalid free (found by valgrind).
---
dlls/oleaut32/tests/vartype.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index c2bc231..19e33bc 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);