Commit b6307181 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winhttp: Fix double free on error path in queue_task (scan-build).

queue_task cannot free the struct because it doesn't know whether the struct contains pointers to other dynamically allocated memory that also needs to be freed (as is the case with struct send_request).
parent 2cbaa59a
...@@ -218,7 +218,6 @@ static DWORD queue_task( struct queue *queue, TASK_CALLBACK task, struct task_he ...@@ -218,7 +218,6 @@ static DWORD queue_task( struct queue *queue, TASK_CALLBACK task, struct task_he
if (!callback_running) if (!callback_running)
{ {
release_object( obj ); release_object( obj );
free( task_hdr );
ERR( "Submiting threadpool callback failed, err %lu.\n", GetLastError() ); ERR( "Submiting threadpool callback failed, err %lu.\n", GetLastError() );
return ERROR_OUTOFMEMORY; return ERROR_OUTOFMEMORY;
} }
......
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