Module: wine Branch: master Commit: 4d565644b63ec45a79cd71ea20950b9061d5fcdf URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d565644b63ec45a79cd71ea20... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Aug 25 15:40:36 2013 +0400 ole32: Release marshal info on error path. --- dlls/ole32/git.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/git.c b/dlls/ole32/git.c index 4d44e39..b83d415 100644 --- a/dlls/ole32/git.c +++ b/dlls/ole32/git.c @@ -180,7 +180,12 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal( IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL); entry = HeapAlloc(GetProcessHeap(), 0, sizeof(StdGITEntry)); - if (entry == NULL) return E_OUTOFMEMORY; + if (!entry) + { + CoReleaseMarshalData(stream); + IStream_Release(stream); + return E_OUTOFMEMORY; + } EnterCriticalSection(&git_section);