rpcrt4: Free url in error paths (Coverity).

This commit is contained in:
Marcus Meissner 2013-08-31 10:56:52 +02:00 committed by Alexandre Julliard
parent b084d7a4f8
commit d138a1e43d
1 changed files with 6 additions and 2 deletions

View File

@ -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);