Commit 56976159 authored by Haidong Yu's avatar Haidong Yu Committed by Alexandre Julliard

shell32: Fix a memory leak.

parent 5a7d9fc2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment