rval = GNUNET_YES;
if (opq->active > opq->max_active)
{
- need += opq->active - opq->max_active;
rval = GNUNET_NO;
goto ret;
}
ret:
GNUNET_free_non_null (evict_entries);
- if (NULL != ops_) *ops_ = ops;
- if (NULL != n_ops_) *n_ops_ = n_ops;
+ if (NULL != ops_)
+ *ops_ = ops;
+ else
+ GNUNET_free (ops);
+ if (NULL != n_ops_)
+ *n_ops_ = n_ops;
return rval;
}
* Checks for the readiness of an operation and schedules a operation start task
*
* @param op the operation
- * @param GNUNET_NO if the given operation cannot be made active; GNUNET_YES if
- * it can be activated (has enough resources) and is kept in ready
- * queue
*/
static int
check_readiness (struct GNUNET_TESTBED_Operation *op)