mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
(trunk libT) fix a minor memory leak reported by Valgrind
This commit is contained in:
parent
1b527610dd
commit
fd26f21400
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ savePeers( tr_benc * dict,
|
||||||
if( count > 0 )
|
if( count > 0 )
|
||||||
tr_bencDictAddRaw( dict, KEY_PEERS, pex, sizeof( tr_pex ) * count );
|
tr_bencDictAddRaw( dict, KEY_PEERS, pex, sizeof( tr_pex ) * count );
|
||||||
|
|
||||||
|
tr_free( pex );
|
||||||
|
pex = NULL;
|
||||||
|
|
||||||
count = tr_peerMgrGetPeers( tor->session->peerMgr, tor->info.hash, &pex,
|
count = tr_peerMgrGetPeers( tor->session->peerMgr, tor->info.hash, &pex,
|
||||||
TR_AF_INET6 );
|
TR_AF_INET6 );
|
||||||
if( count > 0 )
|
if( count > 0 )
|
||||||
|
|
Loading…
Reference in a new issue