mfplat: Fix a leak on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cb4d45adfd
commit
3fb0b48e1e
|
@ -577,6 +577,8 @@ static HRESULT alloc_user_queue(MFASYNC_WORKQUEUE_TYPE queue_type, DWORD *queue_
|
|||
else
|
||||
{
|
||||
LeaveCriticalSection(&queues_section);
|
||||
heap_free(queue);
|
||||
WARN("Out of user queue handles.\n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue