msxml3: Avoid memory leak (coverity)

André Hentschel nerv at dawncrow.de
Sun Oct 28 10:16:41 CDT 2012


CID 713608
---
 dlls/msxml3/httprequest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 5700311..9a9d93e 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -689,6 +689,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
             if ((hr = SafeArrayGetUBound(sa, 1, &size) != S_OK))
             {
                 SafeArrayUnaccessData(sa);
+                heap_free(bsc);
                 return hr;
             }
             size++;
-- 
1.8.0



-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list