Changeset 13561


Ignore:
Timestamp:
Oct 13, 2012, 5:32:23 PM (9 years ago)
Author:
jordan
Message:

fix NULL-pointer-dereference regression introduced in r13546 for #5069.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/webseed.c

    r13361 r13561  
    8181    tr_file_index_t i;
    8282
    83     for( i=0; i<inf->fileCount; ++i )
    84         tr_free( w->file_urls[i] );
    85     tr_free( w->file_urls );
     83    /* if we have an array of file URLs, free it */
     84    if( w->file_urls != NULL ) {
     85        for( i=0; i<inf->fileCount; ++i )
     86            tr_free( w->file_urls[i] );
     87        tr_free( w->file_urls );
     88    }
    8689
    8790    /* webseed destruct */
Note: See TracChangeset for help on using the changeset viewer.