1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) I love you, massif

This commit is contained in:
Charles Kerr 2009-06-25 04:02:07 +00:00
parent ffc54a8c7e
commit db5b508ca6

View file

@ -165,6 +165,12 @@ canReadWrapper( tr_peerIo * io )
tr_globalUnlock( session ); 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 ); tr_peerIoUnref( io );
} }