(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
1 changed files with 3 additions and 0 deletions

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