1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

fix trunk memory leak reported by tiennou

This commit is contained in:
Charles Kerr 2007-11-16 15:33:57 +00:00
parent 787d2b800c
commit 1ebaf597a4

View file

@ -1756,6 +1756,9 @@ tr_peerMsgsFree( tr_peermsgs* msgs )
tr_list_free( &msgs->clientAskedFor, tr_free ); tr_list_free( &msgs->clientAskedFor, tr_free );
tr_list_free( &msgs->peerAskedForFast, tr_free ); tr_list_free( &msgs->peerAskedForFast, tr_free );
tr_list_free( &msgs->peerAskedFor, tr_free ); tr_list_free( &msgs->peerAskedFor, tr_free );
tr_bitfieldFree( msgs->peerAllowedPieces );
tr_bitfieldFree( msgs->clientAllowedPieces );
tr_bitfieldFree( msgs->clientSuggestedPieces );
evbuffer_free( msgs->outMessages ); evbuffer_free( msgs->outMessages );
evbuffer_free( msgs->outBlock ); evbuffer_free( msgs->outBlock );
tr_free( msgs->pex ); tr_free( msgs->pex );