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:
parent
eb46c13d74
commit
1aefd9f1de
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue