mshtml: Fix a memory leak on an error path (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Sun Sep 16 08:22:29 CDT 2012
---
dlls/mshtml/navigate.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index a15be0e..15c9e85 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -769,8 +769,10 @@ static void query_http_info(nsChannelBSC *This, IWinInetHttpInfo *wininet_info)
return;
IWinInetHttpInfo_QueryInfo(wininet_info, HTTP_QUERY_RAW_HEADERS_CRLF, buf, &len, NULL, NULL);
- if(!len)
+ if(!len) {
+ heap_free(buf);
return;
+ }
ptr = strchrW(buf, '\r');
if(ptr && ptr[1] == '\n') {
--
1.7.6.5
More information about the wine-patches
mailing list