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:
Nikolay Sivov 2017-12-23 10:51:17 +03:00 committed by Alexandre Julliard
parent 523e07da5c
commit fb4ab15a4e
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
if (!(folders->path = heap_strdupW(path)))
{
heap_free(folders);
free_list(list, count);
return E_OUTOFMEMORY;
}
folders->count = count;