tr_free() already checks for null, so no need for the caller to wrap it in an 'if not null' test

This commit is contained in:
Jordan Lee 2011-09-12 20:41:28 +00:00
parent 10734ab7bc
commit 3a39486cf1
1 changed files with 2 additions and 4 deletions

View File

@ -98,10 +98,8 @@ webseed_free( struct tr_webseed * w )
const tr_info * inf = tr_torrentInfo( tor );
tr_file_index_t i;
for( i = 0; i < inf->fileCount; i++ ) {
if( w->file_urls[i] )
tr_free( w->file_urls[i] );
}
for( i=0; i<inf->fileCount; ++i )
tr_free( w->file_urls[i] );
tr_free( w->file_urls );
/* webseed destruct */