tests/efl: use alloca for composite model test future to avoid leak

CID 1407236

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11711
This commit is contained in:
Mike Blumenkrantz 2020-04-15 10:44:09 -04:00 committed by Marcel Hollerbach
parent 6a0c8e9d26
commit e88311ae95
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ _children_slice_get_then(Eo *o EINA_UNUSED,
Efl_Model *child;
Eina_Future **all;
all = calloc(1, sizeof (Eina_Future *) * (eina_value_array_count(&v) + 1));
if (!all) return eina_value_error_init(ENOMEM);
all = alloca(sizeof (Eina_Future *) * (eina_value_array_count(&v) + 1));
EINA_VALUE_ARRAY_FOREACH(&v, len, i, child)
{