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,10 +1289,12 @@ 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. */
|
||||
for(i = 0; i < cidl; i++)
|
||||
|
|
Loading…
Reference in New Issue