From: Christopher Michael Date: Thu, 2 May 2019 11:45:38 +0000 (+0200) Subject: efl_ui_test_widget: Fix memory leak X-Git-Tag: accepted/tizen/unified/20190509.041000~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c5af414a550a9b332d16e20424df0e5bebc03ff;p=platform%2Fupstream%2Fefl.git 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 D8765 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8766 --- diff --git a/src/tests/elementary/efl_ui_test_widget.c b/src/tests/elementary/efl_ui_test_widget.c index a49eefe..5d49f22 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