Module: wine Branch: master Commit: 0535a2d39c928b7e04def6fe9a1d9c11cf04ce4a URL: http://source.winehq.org/git/wine.git/?a=commit;h=0535a2d39c928b7e04def6fe9a... Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Dec 15 12:26:37 2009 +0000 oleaut32: Fix a memory leak in the tests. Found by Valgrind. --- dlls/oleaut32/tests/varformat.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c index 6833a27..9d15fd9 100644 --- a/dlls/oleaut32/tests/varformat.c +++ b/dlls/oleaut32/tests/varformat.c @@ -387,7 +387,9 @@ static void test_VarFormat(void) /* 'out' is not cleared */ out = (BSTR)0x1; - pVarFormat(&in,NULL,fd,fw,flags,&out); /* Would crash if out is cleared */ + hres = pVarFormat(&in,NULL,fd,fw,flags,&out); /* Would crash if out is cleared */ + ok(hres == S_OK, "got %08x\n", hres); + SysFreeString(out); out = NULL; /* VT_NULL */