mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 16:57:26 +00:00
taskschd: 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
523e07da5c
commit
fb4ab15a4e
@ -239,6 +239,7 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
|
|||||||
if (!(folders->path = heap_strdupW(path)))
|
if (!(folders->path = heap_strdupW(path)))
|
||||||
{
|
{
|
||||||
heap_free(folders);
|
heap_free(folders);
|
||||||
|
free_list(list, count);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
folders->count = count;
|
folders->count = count;
|
||||||
|
Loading…
Reference in New Issue
Block a user