Nikolay Sivov : taskschd: Fix a leak on error path (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Dec 26 15:01:53 CST 2017
Module: wine
Branch: master
Commit: fb4ab15a4e14cec89279fbc7ab2ea12ec1acad89
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fb4ab15a4e14cec89279fbc7ab2ea12ec1acad89
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Dec 23 10:51:17 2017 +0300
taskschd: Fix a leak on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/taskschd/folder_collection.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/taskschd/folder_collection.c b/dlls/taskschd/folder_collection.c
index 969baec..0b2b513 100644
--- a/dlls/taskschd/folder_collection.c
+++ b/dlls/taskschd/folder_collection.c
@@ -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;
More information about the wine-cvs
mailing list