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:
parent
10734ab7bc
commit
3a39486cf1
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue