mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(libT) fix memory leak introduced in r7186
This commit is contained in:
parent
b2359530fd
commit
37414ea274
1 changed files with 3 additions and 4 deletions
|
@ -1301,8 +1301,7 @@ readBtMessage( tr_peermsgs * msgs,
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.index );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.index );
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.offset );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.offset );
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.length );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.length );
|
||||||
dbgmsg( msgs, "got Request: %u:%u->%u", r.index, r.offset,
|
dbgmsg( msgs, "got Request: %u:%u->%u", r.index, r.offset, r.length );
|
||||||
r.length );
|
|
||||||
peerMadeRequest( msgs, &r );
|
peerMadeRequest( msgs, &r );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1313,8 +1312,7 @@ readBtMessage( tr_peermsgs * msgs,
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.index );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.index );
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.offset );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.offset );
|
||||||
tr_peerIoReadUint32( msgs->io, inbuf, &r.length );
|
tr_peerIoReadUint32( msgs->io, inbuf, &r.length );
|
||||||
dbgmsg( msgs, "got a Cancel %u:%u->%u", r.index, r.offset,
|
dbgmsg( msgs, "got a Cancel %u:%u->%u", r.index, r.offset, r.length );
|
||||||
r.length );
|
|
||||||
reqListRemove( &msgs->peerAskedFor, &r );
|
reqListRemove( &msgs->peerAskedFor, &r );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1928,6 +1926,7 @@ tr_peerMsgsFree( tr_peermsgs* msgs )
|
||||||
tr_publisherFree( &msgs->publisher );
|
tr_publisherFree( &msgs->publisher );
|
||||||
reqListClear( &msgs->clientWillAskFor );
|
reqListClear( &msgs->clientWillAskFor );
|
||||||
reqListClear( &msgs->clientAskedFor );
|
reqListClear( &msgs->clientAskedFor );
|
||||||
|
reqListClear( &msgs->peerAskedFor );
|
||||||
|
|
||||||
tr_bitfieldFree( msgs->peerAllowedPieces );
|
tr_bitfieldFree( msgs->peerAllowedPieces );
|
||||||
evbuffer_free( msgs->incoming.block );
|
evbuffer_free( msgs->incoming.block );
|
||||||
|
|
Loading…
Reference in a new issue