shell32: Fix a memory leak.
Signed-off-by: Haidong Yu <yuhaidong@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 56976159ab
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
ef54f3c227
commit
bd11172b7a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue