Haidong Yu : shell32: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Tue Oct 26 09:40:30 CDT 2021


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

Author: Haidong Yu <yuhaidong at uniontech.com>
Date:   Wed Jun  9 20:53:59 2021 +0800

shell32: Fix a memory leak.

Signed-off-by: Haidong Yu <yuhaidong at uniontech.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 56976159ab792563e1e3ce237dce39d0ea68d0b8)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/shell32/shlexec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index ce0b8f6d2be..ee1e832df33 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1763,7 +1763,8 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
         buf = heap_alloc(size * sizeof(WCHAR));
         if (!buf || FAILED(PathCreateFromUrlW(sei_tmp.lpFile, buf, &size, 0))) {
             heap_free(buf);
-            return SE_ERR_OOM;
+            retval = SE_ERR_OOM;
+            goto end;
         }
 
         heap_free(wszApplicationName);




More information about the wine-cvs mailing list