oledb32: Properly free property sets and propinfo sets (Coverity).

This commit is contained in:
Nikolay Sivov 2012-11-29 08:22:55 -05:00 committed by Alexandre Julliard
parent 0e179e08b6
commit 75cc571fab
1 changed files with 2 additions and 2 deletions

View File

@ -355,8 +355,8 @@ static void free_dbpropset(ULONG count, DBPROPSET *propset)
VariantClear(&propset[i].rgProperties[p].vValue); VariantClear(&propset[i].rgProperties[p].vValue);
CoTaskMemFree(&propset[i].rgProperties[p]); CoTaskMemFree(&propset[i].rgProperties[p]);
} }
CoTaskMemFree(&propset[i]);
} }
CoTaskMemFree(propset);
} }
static void free_dbpropinfoset(ULONG count, DBPROPINFOSET *propinfoset) static void free_dbpropinfoset(ULONG count, DBPROPINFOSET *propinfoset)
@ -372,8 +372,8 @@ static void free_dbpropinfoset(ULONG count, DBPROPINFOSET *propinfoset)
VariantClear(&propinfoset[i].rgPropertyInfos[p].vValues); VariantClear(&propinfoset[i].rgPropertyInfos[p].vValues);
CoTaskMemFree(&propinfoset[i].rgPropertyInfos[p]); CoTaskMemFree(&propinfoset[i].rgPropertyInfos[p]);
} }
CoTaskMemFree(&propinfoset[i]);
} }
CoTaskMemFree(propinfoset);
} }
static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, IUnknown *datasource, static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, IUnknown *datasource,