Commit 1f7c84a3 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winhttp: Fix memory leak on error path in request_get_codepage (scan-build).

parent 0653409e
......@@ -5493,6 +5493,7 @@ static DWORD request_get_codepage( struct winhttp_request *request, UINT *codepa
if (!(buffer = malloc( size ))) return ERROR_OUTOFMEMORY;
if (!WinHttpQueryHeaders( request->hrequest, WINHTTP_QUERY_CONTENT_TYPE, NULL, buffer, &size, NULL ))
{
free( buffer );
return GetLastError();
}
if ((p = wcsstr( buffer, L"charset" )))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment