ole32: Don't leak memory allocated by enumx_allocate (coverity).
This commit is contained in:
parent
b45e4496af
commit
7c381e59c4
|
@ -2386,7 +2386,10 @@ static HRESULT create_EnumSTATPROPSETSTG(
|
||||||
/* add all the property set elements into a list */
|
/* add all the property set elements into a list */
|
||||||
r = IStorage_EnumElements(stg, 0, NULL, 0, &penum);
|
r = IStorage_EnumElements(stg, 0, NULL, 0, &penum);
|
||||||
if (FAILED(r))
|
if (FAILED(r))
|
||||||
|
{
|
||||||
|
enumx_Release(enumx);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue