ole32: Release marshal info on error path.

This commit is contained in:
Nikolay Sivov 2013-08-25 15:40:36 +04:00 committed by Alexandre Julliard
parent 2a1513415d
commit 4d565644b6

View file

@ -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);