mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) I love you, massif
This commit is contained in:
parent
ffc54a8c7e
commit
db5b508ca6
1 changed files with 6 additions and 0 deletions
|
@ -165,6 +165,12 @@ canReadWrapper( tr_peerIo * io )
|
|||
tr_globalUnlock( session );
|
||||
}
|
||||
|
||||
/* keep the iobuf's excess capacity from growing too large */
|
||||
if( EVBUFFER_LENGTH( io->inbuf ) == 0 ) {
|
||||
evbuffer_free( io->inbuf );
|
||||
io->inbuf = evbuffer_new( );
|
||||
}
|
||||
|
||||
tr_peerIoUnref( io );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue