Commit e2985384 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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.
parent cb7aa030
......@@ -261,12 +261,10 @@ 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment