ole32: Return if out of memory (Coverity).
This commit is contained in:
parent
70caadbf34
commit
c2015d3341
|
@ -539,7 +539,10 @@ static HRESULT WINAPI ServerRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
|
||||||
if (msg->Buffer)
|
if (msg->Buffer)
|
||||||
status = RPC_S_OK;
|
status = RPC_S_OK;
|
||||||
else
|
else
|
||||||
status = ERROR_OUTOFMEMORY;
|
{
|
||||||
|
HeapFree(GetProcessHeap(), 0, channel_hook_data);
|
||||||
|
return E_OUTOFMEMORY;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
status = I_RpcGetBuffer(msg);
|
status = I_RpcGetBuffer(msg);
|
||||||
|
|
Loading…
Reference in New Issue