1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

plug some minor memory leaks. (valgrind)

This commit is contained in:
Charles Kerr 2007-09-24 15:50:59 +00:00
parent 2d9875f07a
commit 6897fe4327
2 changed files with 2 additions and 0 deletions

View file

@ -723,6 +723,7 @@ myHandshakeDoneCB( tr_handshake * handshake,
peer->port = port;
peer->io = io;
peer->msgs = tr_peerMsgsNew( t->tor, peer );
tr_free( peer->client );
peer->client = peer_id ? tr_clientForId( peer_id ) : NULL;
peer->peerSupportsEncryption = peerSupportsEncryption ? 1 : 0;
peer->msgsTag = tr_peerMsgsSubscribe( peer->msgs, msgsCallbackFunc, t );

View file

@ -1239,6 +1239,7 @@ sendPex( tr_peermsgs * msgs )
tr_bencFree( &val );
tr_free( diffs.added );
tr_free( diffs.dropped );
tr_free( diffs.elements );
tr_free( newPex );
msgs->clientSentPexAt = time( NULL );