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:
parent
2d9875f07a
commit
6897fe4327
2 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue