mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user