ole32: Don't leak memory allocated by enumx_allocate (coverity).

oldstable
André Hentschel 2012-10-28 16:16:52 +01:00 committed by Alexandre Julliard
parent b45e4496af
commit 7c381e59c4
1 changed files with 3 additions and 0 deletions

View File

@ -2386,7 +2386,10 @@ static HRESULT create_EnumSTATPROPSETSTG(
/* add all the property set elements into a list */
r = IStorage_EnumElements(stg, 0, NULL, 0, &penum);
if (FAILED(r))
{
enumx_Release(enumx);
return E_OUTOFMEMORY;
}
while (1)
{