Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-17 00:58:43 +01:00
parent e4b33efdb2
commit 037c612c33

View File

@ -229,9 +229,15 @@ int rpc_send_bind_pdu(rdpRpc* rpc)
clientCall = rpc_client_call_new(bind_pdu->call_id, 0);
if (!clientCall)
{
free(buffer);
return -1;
}
if (ArrayList_Add(rpc->client->ClientCallList, clientCall) < 0)
{
free(buffer);
return -1;
}
if (rpc_send_enqueue_pdu(rpc, buffer, length) != 0)
length = -1;