Commit e6ce281d authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

shell32: Fix a use after free (Coverity).

parent 097733fe
......@@ -1289,9 +1289,11 @@ HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent,
if(SUCCEEDED(ret))
{
ret = create_shellitemarray(array, cidl, ppsiItemArray);
heap_free(array);
if(SUCCEEDED(ret))
{
heap_free(array);
return ret;
}
}
/* Something failed, clean up. */
......
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