oleaut32: Don't leak SafeArray (coverity)
André Hentschel
nerv at dawncrow.de
Sun Oct 28 10:16:51 CDT 2012
CID 713623
---
dlls/oleaut32/typelib.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 602181c..7700121 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -6499,6 +6499,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
if (hres != S_OK)
{
ERR("SafeArrayAccessData failed with %x\n", hres);
+ SafeArrayDestroy(a);
break;
}
for (j = 0; j < bound.cElements; j++)
@@ -6507,6 +6508,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
if (hres != S_OK)
{
ERR("SafeArrayUnaccessData failed with %x\n", hres);
+ SafeArrayDestroy(a);
break;
}
V_ARRAY(&rgvarg[i]) = a;
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list