Changeset 1155


Ignore:
Timestamp:
Dec 5, 2006, 7:03:10 PM (15 years ago)
Author:
livings124
Message:

some extra free's

Location:
branches/multitracker/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/libtransmission/metainfo.c

    r1154 r1155  
    276276        {
    277277            tr_err( "No \"announce\" entry" );
     278            free( address );
     279            free( announce );
     280           
    278281            tr_bencFree( &meta );
    279282            return 1;
     
    283286        {
    284287            tr_err( "Invalid announce URL (%s)", val->val.s.s );
     288            free( address );
     289            free( announce );
     290           
    285291            tr_bencFree( &meta );
    286292            return 1;
  • branches/multitracker/libtransmission/tracker.c

    r1154 r1155  
    4949    int            lastScrapeFailed;
    5050   
    51     int            shouldsetAnnounce;
     51    int            shouldChangeAnnounce;
    5252    int            announceTier;
    5353    int            announceTierLast;
     
    156156   
    157157    tc->announceTierLast++;
    158     tc->shouldsetAnnounce = 1;
     158    tc->shouldChangeAnnounce = 1;
    159159   
    160160    /* If there are no more trackers don't try to change the announce */
     
    170170    if( announceItem == NULL )
    171171    {
    172         tc->shouldsetAnnounce = 0;
     172        tc->shouldChangeAnnounce = 0;
    173173    }
    174174}
     
    180180   
    181181    /* Last tracker failed, try next */
    182     if( tc->shouldsetAnnounce )
     182    if( tc->shouldChangeAnnounce )
    183183    {
    184184        return 1;
     
    255255
    256256    /* in process of changing tracker or scrape not supported */
    257     if( tc->shouldsetAnnounce || !inf->trackerCanScrape )
     257    if( tc->shouldChangeAnnounce || !inf->trackerCanScrape )
    258258    {
    259259        return 0;
     
    287287    if( ( NULL == tc->http ) && shouldConnect( tc ) )
    288288    {
    289         if( tc->shouldsetAnnounce )
     289        if( tc->shouldChangeAnnounce )
    290290        {
    291291            tr_err( "Tracker: %s failed to connect, trying next", inf->trackerAddress );
     
    313313            setAnnounce( tc, announceItem );
    314314           
    315             tc->shouldsetAnnounce = 0;
     315            tc->shouldChangeAnnounce = 0;
    316316        }
    317317        else
     
    353353               
    354354                failureAnnouncing( tc );
    355                 if ( tc->shouldsetAnnounce )
     355                if ( tc->shouldChangeAnnounce )
    356356                {
    357357                    tr_trackerPulse( tc );
     
    365365               
    366366                /* Something happened to need to try next address */
    367                 if ( tc->shouldsetAnnounce )
     367                if ( tc->shouldChangeAnnounce )
    368368                {
    369369                    tr_trackerPulse( tc );
Note: See TracChangeset for help on using the changeset viewer.