Jon Griffiths : oleaut32/tests: Fix invalid free (found by valgrind).

Alexandre Julliard julliard at winehq.org
Fri Jun 20 06:22:13 CDT 2008


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

Author: Jon Griffiths <jon_p_griffiths at 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);




More information about the wine-cvs mailing list