Commit 6401720d authored by Jeremy White's avatar Jeremy White Committed by Alexandre Julliard

oleaut32/tests: Avoid a memory leak; spotted by Valgrind.

parent 02657699
......@@ -396,7 +396,10 @@ static void test_marshal_LPSAFEARRAY(void)
hr = SafeArrayGetElement(lpsa2, indices, &gotvalue);
ok(hr == S_OK, "Failed to get bstr element at hres 0x%x\n", hr);
if (hr == S_OK)
{
ok(VarBstrCmp(values[i], gotvalue, 0, 0) == VARCMP_EQ, "String %d does not match\n", i);
SysFreeString(gotvalue);
}
}
SysFreeString(values[i]);
......
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