Skip to content

Commit

Permalink
core: rdp_free should free the ->net it owns
Browse files Browse the repository at this point in the history
(also changes the "free" order to be the opposite of "new" order)
  • Loading branch information
kiilerix committed Jul 1, 2011
1 parent 5b66bdf commit 77232b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libfreerdp-core/rdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1776,12 +1776,13 @@ rdp_free(rdpRdp * rdp)
if (rdp != NULL)
{
freerdp_uniconv_free(rdp->uniconv);
ext_free(rdp->ext);
cache_free(rdp->cache);
pcache_free(rdp->pcache);
orders_free(rdp->orders);
xfree(rdp->buffer);
network_free(rdp->net);
sec_free(rdp->sec);
ext_free(rdp->ext);
xfree(rdp->buffer);
xfree(rdp->redirect_server);
xfree(rdp->redirect_routingtoken);
xfree(rdp->redirect_username);
Expand Down

0 comments on commit 77232b4

Please sign in to comment.