Sven Baars : taskschd: Fix some memory leaks (Valgrind).

Alexandre Julliard julliard at winehq.org
Wed May 15 14:32:23 CDT 2019


Module: wine
Branch: stable
Commit: 1d47e2bc99769d3596f73a95b69dff4fb0ddcfbd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1d47e2bc99769d3596f73a95b69dff4fb0ddcfbd

Author: Sven Baars <sven.wine at gmail.com>
Date:   Wed Feb  6 11:48:21 2019 +0100

taskschd: Fix some memory leaks (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit bff3918553eafc80366731b6d60c42151a298856)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/taskschd/regtask.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/taskschd/regtask.c b/dlls/taskschd/regtask.c
index 5c81821..74f95d9 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);




More information about the wine-cvs mailing list