Exemplo n.º 1
0
Arquivo: rpc.c Projeto: d0rian/FreeRDP
void rpc_free(rdpRpc* rpc)
{
	if (rpc != NULL)
	{
		RPC_PDU* PduEntry;

		ntlm_http_free(rpc->NtlmHttpIn);
		ntlm_http_free(rpc->NtlmHttpOut);

		_aligned_free(rpc->pdu);

		while ((PduEntry = (RPC_PDU*) InterlockedPopEntrySList(rpc->SendQueue)) != NULL)
			_aligned_free(PduEntry);
		_aligned_free(rpc->SendQueue);

		while ((PduEntry = (RPC_PDU*) InterlockedPopEntrySList(rpc->ReceiveQueue)) != NULL)
			_aligned_free(PduEntry);
		_aligned_free(rpc->ReceiveQueue);

		rpc_client_virtual_connection_free(rpc->VirtualConnection);
		rpc_virtual_connection_cookie_table_free(rpc->VirtualConnectionCookieTable);

		free(rpc);
	}
}
Exemplo n.º 2
0
void rpc_free(rdpRpc* rpc)
{
	if (rpc != NULL)
	{
		ntlm_http_free(rpc->ntlm_http_in);
		ntlm_http_free(rpc->ntlm_http_out);
		rpc_client_virtual_connection_free(rpc->VirtualConnection);
		xfree(rpc);
	}
}