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:
parent
6a0c8e9d26
commit
e88311ae95
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue