rpcrt4: Don't release the interface pointer on failure.

Don't release the interface pointer on failure since we are not the
ones that allocated it. It is the caller's responsability to call
NdrInterfacePointerFree, where the freeing is supposed to happen.
This commit is contained in:
Robert Shearman 2006-01-10 19:59:26 +01:00 committed by Alexandre Julliard
parent cb7aa0306e
commit e298538459

View file

@ -261,10 +261,8 @@ unsigned char * WINAPI NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
pStubMsg->dwDestContext, pStubMsg->pvDestContext,
MSHLFLAGS_NORMAL);
IStream_Release(stream);
if (FAILED(hr)) {
IUnknown_Release((LPUNKNOWN)pMemory);
if (FAILED(hr))
RpcRaiseException(hr);
}
}
}
return NULL;