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:
parent
cb7aa0306e
commit
e298538459
|
@ -261,10 +261,8 @@ unsigned char * WINAPI NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
|
||||||
pStubMsg->dwDestContext, pStubMsg->pvDestContext,
|
pStubMsg->dwDestContext, pStubMsg->pvDestContext,
|
||||||
MSHLFLAGS_NORMAL);
|
MSHLFLAGS_NORMAL);
|
||||||
IStream_Release(stream);
|
IStream_Release(stream);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr))
|
||||||
IUnknown_Release((LPUNKNOWN)pMemory);
|
|
||||||
RpcRaiseException(hr);
|
RpcRaiseException(hr);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue