ole32: Return if out of memory (Coverity).

This commit is contained in:
André Hentschel 2011-09-28 19:58:57 +02:00 committed by Alexandre Julliard
parent 70caadbf34
commit c2015d3341
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ static HRESULT WINAPI ServerRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
if (msg->Buffer)
status = RPC_S_OK;
else
status = ERROR_OUTOFMEMORY;
{
HeapFree(GetProcessHeap(), 0, channel_hook_data);
return E_OUTOFMEMORY;
}
}
else
status = I_RpcGetBuffer(msg);