=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: msxml3: Fix remaining memory leak ( coverity).
Alexandre Julliard
julliard at winehq.org
Tue Nov 13 13:46:06 CST 2012
Module: wine
Branch: master
Commit: 5e031741cd02785348da0d0c51d12e1a3c517c53
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e031741cd02785348da0d0c51d12e1a3c517c53
Author: André Hentschel <nerv at dawncrow.de>
Date: Sat Nov 10 15:57:22 2012 +0100
msxml3: Fix remaining memory leak (coverity).
---
dlls/msxml3/httprequest.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 9a9d93e..62fff98 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -685,7 +685,11 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
case VT_ARRAY|VT_UI1:
{
sa = V_ARRAY(body);
- if ((hr = SafeArrayAccessData(sa, (void **)&ptr)) != S_OK) return hr;
+ if ((hr = SafeArrayAccessData(sa, (void **)&ptr)) != S_OK)
+ {
+ heap_free(bsc);
+ return hr;
+ }
if ((hr = SafeArrayGetUBound(sa, 1, &size) != S_OK))
{
SafeArrayUnaccessData(sa);
More information about the wine-cvs
mailing list