winhttp: Use proper deallocator (Coverity).

This commit is contained in:
Nikolay Sivov 2014-04-14 19:10:23 +04:00 committed by Alexandre Julliard
parent 4def66c11c
commit 2c880e5271

View File

@ -1612,11 +1612,11 @@ done:
heap_free( hdr );
if (!ret)
{
heap_free( config->lpszAutoConfigUrl );
GlobalFree( config->lpszAutoConfigUrl );
config->lpszAutoConfigUrl = NULL;
heap_free( config->lpszProxy );
GlobalFree( config->lpszProxy );
config->lpszProxy = NULL;
heap_free( config->lpszProxyBypass );
GlobalFree( config->lpszProxyBypass );
config->lpszProxyBypass = NULL;
}
return ret;