Commit 0535a2d3 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

oleaut32: Fix a memory leak in the tests.

Found by Valgrind.
parent 6af1df86
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment