aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:45:38 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:45:38 +0200
commit5434b4fcf01efb92063c36ff5ecd29b90195c94f (patch)
treec78a2e7504728803049ac5d9ba7e56f08ae71d87
parenteina_test_binbuf: Fix memory leak (diff)
downloadefl-5434b4fcf01efb92063c36ff5ecd29b90195c94f.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 before we exit Fixes CID1401003 @fix Depends on https://phab.enlightenment.org/D8765 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8766
-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 a49eefe804..5d49f228de 100644
--- a/src/tests/elementary/efl_ui_test_widget.c
+++ b/src/tests/elementary/efl_ui_test_widget.c
@@ -60,6 +60,7 @@ EFL_START_TEST(efl_ui_test_widget_parent_iterator)
}
eina_iterator_free(it);
ck_assert_int_eq(eina_array_count(a), 0);
+ eina_array_free(a);
}
EFL_END_TEST