aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:39 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:39 +0200
commit06263f319fc3c1bb7a2697db47ecdf02432ec61b (patch)
tree56630e6af8d34e8d0dd7e92b17d299bd5a02e159
parenteldbus_test_eldbus_message: Fix resource leak (diff)
downloadefl-06263f319fc3c1bb7a2697db47ecdf02432ec61b.tar.gz
efl_ui_test_widget: Fix memory leak
Summary: Coverity reports that we leak the memory from eina_array_new so lets add a call to eina_array_free Fixes CID1400889 @fix Depends on https://phab.enlightenment.org/D8773 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8774
-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 771ceab033..9a402aa020 100644
--- a/src/tests/elementary/efl_ui_test_widget.c
+++ b/src/tests/elementary/efl_ui_test_widget.c
@@ -174,6 +174,7 @@ EFL_START_TEST(efl_ui_test_widget_sub_iterator)
}
eina_iterator_free(it);
ck_assert_int_eq(eina_array_count(a), 0);
+ eina_array_free(a);
}
EFL_END_TEST