From 99549e1e2e1bfa52adb667efc0b8d64048690237 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 13 Jun 2015 09:21:06 +0200 Subject: [PATCH] oledb32: Free memory on error exit (Coverity). --- dlls/oledb32/datainit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c index 3c5293a3d24..3a76e0b85a5 100644 --- a/dlls/oledb32/datainit.c +++ b/dlls/oledb32/datainit.c @@ -520,6 +520,8 @@ static HRESULT get_dbpropset_from_proplist(struct dbprops *props, DBPROPSET **pr if (FAILED(hr)) { ERR("failed to init property %s value as type %d\n", debugstr_w(pair->name), descr->type); + free_dbpropset(1, *propset); + *propset = NULL; return hr; }