Commit fb4ab15a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

taskschd: Fix a leak on error path (Coverity).

parent 523e07da
......@@ -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;
......
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