diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index f2b83bd76..cbc005097 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -1856,6 +1856,7 @@ sendPex( tr_peermsgs * msgs ) *walk++ = diffs.added[i].flags; assert( ( walk - tmp ) == diffs.addedCount ); tr_bencDictAddRaw( &val, "added.f", tmp, walk-tmp ); + tr_free( tmp ); /* "dropped" */ dropped = tr_bencDictAdd( &val, "dropped" );