ole32: Don't leak memory allocated by enumx_allocate (coverity)
André Hentschel
nerv at dawncrow.de
Sun Oct 28 10:16:52 CDT 2012
CID 713649
---
dlls/ole32/stg_prop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index b582654..c2626cf 100644
--- a/dlls/ole32/stg_prop.c
+++ b/dlls/ole32/stg_prop.c
@@ -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)
{
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list