Commit 9a2f3cb9 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Consistently use the allocation macros.

parent 56886ab7
...@@ -532,7 +532,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure ) ...@@ -532,7 +532,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
pCRYPTO_set_id_callback(ssl_thread_id); pCRYPTO_set_id_callback(ssl_thread_id);
num_ssl_locks = pCRYPTO_num_locks(); num_ssl_locks = pCRYPTO_num_locks();
ssl_locks = HeapAlloc(GetProcessHeap(), 0, num_ssl_locks * sizeof(CRITICAL_SECTION)); ssl_locks = heap_alloc(num_ssl_locks * sizeof(CRITICAL_SECTION));
if (!ssl_locks) if (!ssl_locks)
{ {
set_last_error( ERROR_OUTOFMEMORY ); set_last_error( ERROR_OUTOFMEMORY );
...@@ -577,7 +577,7 @@ void netconn_unload( void ) ...@@ -577,7 +577,7 @@ void netconn_unload( void )
ssl_locks[i].DebugInfo->Spare[0] = 0; ssl_locks[i].DebugInfo->Spare[0] = 0;
DeleteCriticalSection( &ssl_locks[i] ); DeleteCriticalSection( &ssl_locks[i] );
} }
HeapFree( GetProcessHeap(), 0, ssl_locks ); heap_free( ssl_locks );
} }
DeleteCriticalSection(&init_ssl_cs); DeleteCriticalSection(&init_ssl_cs);
#endif #endif
......
...@@ -210,7 +210,7 @@ BOOL WINAPI WinHttpCrackUrl( LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONEN ...@@ -210,7 +210,7 @@ BOOL WINAPI WinHttpCrackUrl( LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONEN
debugstr_wn( uc->lpszExtraInfo, uc->dwExtraInfoLength )); debugstr_wn( uc->lpszExtraInfo, uc->dwExtraInfoLength ));
exit: exit:
HeapFree( GetProcessHeap(), 0, url_decoded ); heap_free( url_decoded );
return ret; return ret;
} }
......
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