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

View file

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