taskschd: Fix some memory leaks (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-02-06 11:48:21 +01:00 committed by Alexandre Julliard
parent e4f15a297f
commit bff3918553

View file

@ -350,6 +350,7 @@ HRESULT RegisteredTask_create(const WCHAR *path, const WCHAR *name, ITaskDefinit
SysFreeString(xml);
return hr;
}
SysFreeString(xml);
heap_free(full_name);
full_name = heap_strdupW(actual_path);
@ -366,6 +367,7 @@ HRESULT RegisteredTask_create(const WCHAR *path, const WCHAR *name, ITaskDefinit
{
heap_free(full_name);
heap_free(regtask);
MIDL_user_free(xml);
return hr;
}
MIDL_user_free(xml);