From 1aefd9f1de694ff9dc4d129f23b67060259ba40b Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 28 Sep 2011 16:06:19 +0000 Subject: [PATCH] munge tr_torrent's memory immediately before freeing it. --- libtransmission/torrent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 7cac7d0b5..18e507ca5 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 );