Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/taskschd/regtask.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/taskschd/regtask.c b/dlls/taskschd/regtask.c index 5c81821e69..74f95d9944 100644 --- a/dlls/taskschd/regtask.c +++ b/dlls/taskschd/regtask.c @@ -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);