mshtml: Fix a memory leak on an error path (Smatch).

This commit is contained in:
Michael Stefaniuc 2012-09-16 15:22:29 +02:00 committed by Alexandre Julliard
parent ab381658e0
commit d8d58b238c
1 changed files with 3 additions and 1 deletions

View File

@ -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') {