aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:45:59 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:45:59 +0200
commite96d29665973c3fa8809d5e2551e9b7ae97d2d33 (patch)
tree5025c72fadfeb0249d9e6cea9ece9fdff052bd4c
parentefl_ui_test_widget: Fix memory leak (diff)
downloadefl-e96d29665973c3fa8809d5e2551e9b7ae97d2d33.tar.gz
efl_ui_test_widget: Fix memory leak
Summary: Coverity reports that we leak the eina_array 'a' here, so add a call to eina_array_free Fixes CID1400844 @fix Depends on https://phab.enlightenment.org/D8766 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8767
-rw-r--r--src/tests/elementary/efl_ui_test_widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_widget.c b/src/tests/elementary/efl_ui_test_widget.c
index 5d49f228de..771ceab033 100644
--- a/src/tests/elementary/efl_ui_test_widget.c
+++ b/src/tests/elementary/efl_ui_test_widget.c
@@ -87,6 +87,7 @@ EFL_START_TEST(efl_ui_test_widget_widget_iterator)
}
eina_iterator_free(it);
ck_assert_int_eq(eina_array_count(a), 0);
+ eina_array_free(a);
}
EFL_END_TEST