Commit e091a7b8 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

oledb32/tests: Avoid use-after-free and unused assignment.

parent e7fbdd1e
......@@ -1043,13 +1043,9 @@ static void test_odbc_provider(void)
ok(propidlist.cPropertyIDs == 14, "got %ld\n", propinfoset->cPropertyInfos);
for (i = 0; i < propidlist.cPropertyIDs; i++)
{
ok(properties[i] == propidlist.rgPropertyIDs[i], "%ld, got %ld\n", i,
propidlist.rgPropertyIDs[i]);
propidlist.rgPropertyIDs[i] = propinfoset->rgPropertyInfos[i].dwPropertyID;
}
CoTaskMemFree(propidlist.rgPropertyIDs);
CoTaskMemFree(propset);
}
......
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