mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +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
|
@ -73,6 +73,9 @@ savePeers( tr_benc * dict,
|
|||
|
||||
if( count > 0 )
|
||||
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,
|
||||
TR_AF_INET6 );
|
||||
|
|
Loading…
Reference in a new issue