Commit 48344f50 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Free the resource allocated by InitializeSecurityContext when the connection is closed.

parent 4babec19
......@@ -1280,6 +1280,11 @@ RPC_STATUS RPCRT4_OpenClientConnection(RpcConnection* Connection)
RPC_STATUS RPCRT4_CloseConnection(RpcConnection* Connection)
{
TRACE("(Connection == ^%p)\n", Connection);
if (SecIsValidHandle(&Connection->ctx))
{
DeleteSecurityContext(&Connection->ctx);
SecInvalidateHandle(&Connection->ctx);
}
rpcrt4_conn_close(Connection);
return RPC_S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment