forked from Mirrors/wine-wine
shell32: Fix a use after free (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit e6ce281d30
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
parent
026af56dba
commit
9b2afce2b7
|
@ -1289,9 +1289,11 @@ HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent,
|
||||||
if(SUCCEEDED(ret))
|
if(SUCCEEDED(ret))
|
||||||
{
|
{
|
||||||
ret = create_shellitemarray(array, cidl, ppsiItemArray);
|
ret = create_shellitemarray(array, cidl, ppsiItemArray);
|
||||||
heap_free(array);
|
|
||||||
if(SUCCEEDED(ret))
|
if(SUCCEEDED(ret))
|
||||||
|
{
|
||||||
|
heap_free(array);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Something failed, clean up. */
|
/* Something failed, clean up. */
|
||||||
|
|
Loading…
Reference in New Issue