winhttp: Fix memory leak on error path in request_get_codepage (scan-build).
This commit is contained in:
parent
0653409e06
commit
1f7c84a33a
1 changed files with 1 additions and 0 deletions
|
@ -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" )))
|
||||
|
|
Loading…
Add table
Reference in a new issue