mshtml: Fix a memory leak on an error path (Smatch).
This commit is contained in:
parent
ab381658e0
commit
d8d58b238c
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue