Jacek Caban : rpcrt4: Fixed memory leak.
Alexandre Julliard
julliard at winehq.org
Wed Aug 15 14:08:32 CDT 2012
Module: wine
Branch: master
Commit: 07cb28c64132b8323d715a1bebd53b5a0844463f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=07cb28c64132b8323d715a1bebd53b5a0844463f
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Aug 15 10:22:56 2012 +0200
rpcrt4: Fixed memory leak.
---
dlls/rpcrt4/rpc_transport.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index b44198f..347bb41 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -2384,12 +2384,14 @@ static RPC_STATUS rpcrt4_ncacn_http_open(RpcConnection* Connection)
if (!httpc->in_request)
{
ERR("HttpOpenRequestW failed with error %d\n", GetLastError());
+ HeapFree(GetProcessHeap(), 0, url);
return RPC_S_SERVER_UNAVAILABLE;
}
httpc->out_request = HttpOpenRequestW(httpc->session, wszVerbOut, url, NULL, NULL,
wszAcceptTypes,
(secure ? INTERNET_FLAG_SECURE : 0)|INTERNET_FLAG_KEEP_CONNECTION|INTERNET_FLAG_PRAGMA_NOCACHE,
(DWORD_PTR)httpc->async_data);
+ HeapFree(GetProcessHeap(), 0, url);
if (!httpc->out_request)
{
ERR("HttpOpenRequestW failed with error %d\n", GetLastError());
More information about the wine-cvs
mailing list