From 75cc571fabd101bace788a67c3e3a2cfdadd199b Mon Sep 17 00:00:00 2001 From: Nikolay Sivov <nsivov@codeweavers.com> Date: Thu, 29 Nov 2012 08:22:55 -0500 Subject: [PATCH] oledb32: Properly free property sets and propinfo sets (Coverity). --- dlls/oledb32/datainit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c index b53e08abd14..a191c88aa4e 100644 --- a/dlls/oledb32/datainit.c +++ b/dlls/oledb32/datainit.c @@ -355,8 +355,8 @@ static void free_dbpropset(ULONG count, DBPROPSET *propset) VariantClear(&propset[i].rgProperties[p].vValue); CoTaskMemFree(&propset[i].rgProperties[p]); } - CoTaskMemFree(&propset[i]); } + CoTaskMemFree(propset); } 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); CoTaskMemFree(&propinfoset[i].rgPropertyInfos[p]); } - CoTaskMemFree(&propinfoset[i]); } + CoTaskMemFree(propinfoset); } static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, IUnknown *datasource, -- GitLab