Joris Huizer : mshtml: create_channelbsc: Handle OOM case correctly.

Alexandre Julliard julliard at winehq.org
Thu Mar 4 11:21:42 CST 2010


Module: wine
Branch: master
Commit: b6f2919b9094c1291e046c270a885c0afb8d13ad
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b6f2919b9094c1291e046c270a885c0afb8d13ad

Author: Joris Huizer <joris_huizer at yahoo.com>
Date:   Thu Mar  4 12:39:18 2010 +0100

mshtml: create_channelbsc: Handle OOM case correctly.

---

 dlls/mshtml/navigate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 16d38a1..a09ea7f 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -1136,7 +1136,8 @@ HRESULT create_channelbsc(IMoniker *mon, WCHAR *headers, BYTE *post_data, DWORD
 
     if(post_data) {
         ret->bsc.post_data = GlobalAlloc(0, post_data_size);
-        if(!ret->bsc.headers) {
+        if(!ret->bsc.post_data) {
+            heap_free(ret->bsc.headers);
             IBindStatusCallback_Release(STATUSCLB(&ret->bsc));
             return E_OUTOFMEMORY;
         }




More information about the wine-cvs mailing list