Commit 5308c71c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

oledb32/tests: Free returned property set memory.

parent e04a406a
......@@ -219,6 +219,22 @@ static IDBProperties Test_DBProperties =
&Test_DBProperties_Vtbl
};
static void free_dbpropset(ULONG count, DBPROPSET *propset)
{
ULONG i;
for (i = 0; i < count; i++)
{
ULONG p;
for (p = 0; p < propset[i].cProperties; p++)
VariantClear(&propset[i].rgProperties[p].vValue);
CoTaskMemFree(propset[i].rgProperties);
}
CoTaskMemFree(propset);
}
static void test_IDBProperties(void)
{
HRESULT hr;
......@@ -257,6 +273,8 @@ static void test_IDBProperties(void)
ok(propsets->cProperties == 1, "Expected property count of 1 but got %ld\n", propsets->cProperties);
ok(IsEqualGUID(&propsets->guidPropertySet, &IID_IDBProperties), "Unexpected guid for property set\n");
free_dbpropset(propset_count, propsets);
IDBProperties_Release(pProxy);
end_host_object(tid, thread);
......
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