Marcus Meissner : rpcrt4: Free url in error paths (Coverity).
Module: wine Branch: master Commit: d138a1e43dab10e5a77aee2499583545e83e41fc URL: http://source.winehq.org/git/wine.git/?a=commit;h=d138a1e43dab10e5a77aee2499... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Aug 31 10:56:52 2013 +0200 rpcrt4: Free url in error paths (Coverity). --- dlls/rpcrt4/rpc_transport.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 8932f10..c004f66 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -2533,12 +2533,16 @@ static RPC_STATUS rpcrt4_ncacn_http_open(RpcConnection* Connection) return RPC_S_SERVER_UNAVAILABLE; } status = insert_authorization_header(httpc->in_request, httpc->common.QOS); - if (status != RPC_S_OK) + if (status != RPC_S_OK) { + HeapFree(GetProcessHeap(), 0, url); return status; + } status = insert_cookie_header(httpc->in_request, Connection->CookieAuth); - if (status != RPC_S_OK) + if (status != RPC_S_OK) { + HeapFree(GetProcessHeap(), 0, url); return status; + } httpc->out_request = HttpOpenRequestW(httpc->session, wszVerbOut, url, NULL, NULL, wszAcceptTypes, flags, (DWORD_PTR)httpc->async_data);
participants (1)
-
Alexandre Julliard