mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 20:08:43 +00:00
(libT) fix a small pex memory leak
This commit is contained in:
@@ -1791,7 +1791,11 @@ sendPex( tr_peermsgs * msgs )
|
|||||||
"pex: old peer count %d, new peer count %d, added %d, removed %d",
|
"pex: old peer count %d, new peer count %d, added %d, removed %d",
|
||||||
msgs->pexCount, newCount, diffs.addedCount, diffs.droppedCount );
|
msgs->pexCount, newCount, diffs.addedCount, diffs.droppedCount );
|
||||||
|
|
||||||
if( diffs.addedCount || diffs.droppedCount )
|
if( !diffs.addedCount && !diffs.droppedCount )
|
||||||
|
{
|
||||||
|
tr_free( diffs.elements );
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
tr_benc val;
|
tr_benc val;
|
||||||
|
|||||||
Reference in New Issue
Block a user