oleaut32: Fix a memory leak in the tests.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-15 12:26:37 +00:00 committed by Alexandre Julliard
parent 6af1df86ce
commit 0535a2d39c
1 changed files with 3 additions and 1 deletions

View File

@ -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 */