=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ole32: Return if out of memory ( Coverity).
Alexandre Julliard
julliard at winehq.org
Sat Oct 8 15:16:36 CDT 2011
Module: wine
Branch: master
Commit: c2015d334121729dc01eb1e90c39eb561589ac32
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2015d334121729dc01eb1e90c39eb561589ac32
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Sep 28 19:58:57 2011 +0200
ole32: Return if out of memory (Coverity).
---
dlls/ole32/rpc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index 8ac5d2d..35971e0 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -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);
More information about the wine-cvs
mailing list