1
0
Fork 0
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:
Charles Kerr 2009-01-05 18:18:13 +00:00
parent 1b527610dd
commit fd26f21400

View file

@ -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 )