shell32: Fix a use after free (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
097733fe0d
commit
e6ce281d30
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue