From 78a2d66e1554509ca423e661be3ebb2af8b7c03c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 24 Nov 2009 19:45:36 +0000 Subject: [PATCH] (trunk libT) fix magnet code memory leak --- libtransmission/torrent-magnet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/torrent-magnet.c b/libtransmission/torrent-magnet.c index 18c53b6ba..8f4fb2340 100644 --- a/libtransmission/torrent-magnet.c +++ b/libtransmission/torrent-magnet.c @@ -222,6 +222,8 @@ tr_torrentSetMetadataPiece( tr_torrent * tor, tor->info.hashString, path ); tr_torrentSetDirty( tor ); } + + tr_bencFree( &dict ); } evbuffer_free( buf );