Changeset 1197


Ignore:
Timestamp:
Dec 13, 2006, 6:30:11 PM (15 years ago)
Author:
livings124
Message:

don't leak in the pool (heh heh)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r996 r1197  
    280280    }
    281281
    282     if( poolSize < 1 )
    283     {
    284         return -1;
    285     }
    286 
    287     ret = pool[0];
     282    if( poolSize > 0 )
     283    {
     284        ret = pool[0];
     285        *downloaders = min;
     286    }
     287    else
     288    {
     289        ret = -1;
     290    }
     291
    288292    free( pool );
    289     *downloaders = min;
    290293    return ret;
    291294}
Note: See TracChangeset for help on using the changeset viewer.