Commit 7c381e59 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent b45e4496
...@@ -2386,7 +2386,10 @@ static HRESULT create_EnumSTATPROPSETSTG( ...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment