From 0535a2d39c928b7e04def6fe9a1d9c11cf04ce4a Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 15 Dec 2009 12:26:37 +0000 Subject: [PATCH] oleaut32: Fix a memory leak in the tests. Found by Valgrind. --- dlls/oleaut32/tests/varformat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c index 6833a278ed..9d15fd9ca0 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 */