Changeset 3158


Ignore:
Timestamp:
Sep 24, 2007, 3:50:59 PM (14 years ago)
Author:
charles
Message:

plug some minor memory leaks. (valgrind)

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r3147 r3158  
    724724            peer->io = io;
    725725            peer->msgs = tr_peerMsgsNew( t->tor, peer );
     726            tr_free( peer->client );
    726727            peer->client = peer_id ? tr_clientForId( peer_id ) : NULL;
    727728            peer->peerSupportsEncryption = peerSupportsEncryption ? 1 : 0;
  • trunk/libtransmission/peer-msgs.c

    r3155 r3158  
    12401240        tr_free( diffs.added );
    12411241        tr_free( diffs.dropped );
     1242        tr_free( diffs.elements );
    12421243        tr_free( newPex );
    12431244
Note: See TracChangeset for help on using the changeset viewer.