mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
don't leak in the pool (heh heh)
This commit is contained in:
@@ -279,14 +279,17 @@ int tr_cpMostMissingBlockInPiece( tr_completion_t * cp, int piece,
|
||||
}
|
||||
}
|
||||
|
||||
if( poolSize < 1 )
|
||||
if( poolSize > 0 )
|
||||
{
|
||||
return -1;
|
||||
ret = pool[0];
|
||||
*downloaders = min;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
ret = pool[0];
|
||||
free( pool );
|
||||
*downloaders = min;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user