From 120c0e4032cd1239d17f76f4dd60692cb6f72b5f Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 2 Mar 2020 16:46:19 +0100 Subject: [PATCH] tests_: elementary: remove not used allocation in collection view test Allocated but never used (and never freed). Seems like a copy and paste bug to me. CID: 1412363 Signed-off-by: Stefan Schmidt Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D11442 --- src/tests/elementary/efl_ui_test_collection_view.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tests/elementary/efl_ui_test_collection_view.c b/src/tests/elementary/efl_ui_test_collection_view.c index 5471deaad4..9e9f91b48e 100644 --- a/src/tests/elementary/efl_ui_test_collection_view.c +++ b/src/tests/elementary/efl_ui_test_collection_view.c @@ -45,12 +45,8 @@ static Eina_Value _children_get(Eo *obj EINA_UNUSED, void *data EINA_UNUSED, const Eina_Value v) { Efl_Model *child; - Eina_Future **all; unsigned int i, len; - all = calloc(1 + 1, sizeof(Eina_Future*)); - if (!all) return eina_value_error_init(ENOMEM); - EINA_VALUE_ARRAY_FOREACH(&v, len, i, child) { Eina_Value *rel_val, *title_val;