1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-08 15:34:44 +00:00

munge tr_torrent's memory immediately before freeing it.

This commit is contained in:
Jordan Lee 2011-09-28 16:06:19 +00:00
parent eb46c13d74
commit 1aefd9f1de

View file

@ -1545,6 +1545,7 @@ freeTorrent( tr_torrent * tor )
tr_bandwidthDestruct( &tor->bandwidth );
tr_metainfoFree( inf );
memset( tor, ~0, sizeof( tr_torrent ) );
tr_free( tor );
tr_sessionUnlock( session );