taskschd: Fix some memory leaks (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit bff3918553)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Sven Baars 2019-02-06 11:48:21 +01:00 committed by Michael Stefaniuc
parent c9dad2c6ce
commit 1d47e2bc99
1 changed files with 2 additions and 0 deletions

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);