forked from Mirrors/wine-wine
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
parent
c9dad2c6ce
commit
1d47e2bc99
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue