From c7ebb3787606d326b789dc45d84590c6dd4833d3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 18 Sep 2010 21:57:22 +0000 Subject: [PATCH] (trunk libT) #3566 "Memory leak in libtransmission/torrent.c: refreshCurrentDir()" -- fixed. --- libtransmission/torrent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index b5b38a001..49f63bda2 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2962,13 +2962,12 @@ static void refreshCurrentDir( tr_torrent * tor ) { const char * dir = NULL; - char * sub; if( tor->incompleteDir == NULL ) dir = tor->downloadDir; else if( !tr_torrentHasMetadata( tor ) ) /* no files to find */ dir = tor->incompleteDir; - else if( !tr_torrentFindFile2( tor, 0, &dir, &sub ) ) + else if( !tr_torrentFindFile2( tor, 0, &dir, NULL ) ) dir = tor->incompleteDir; assert( dir != NULL );