summaryrefslogtreecommitdiff
path: root/src/tests/elementary
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:50 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:50 +0200
commit8eae5d32150d17a2c128246097ed22fdbb857f74 (patch)
treebb27969261d678ef4120970d881c30fc208f2385 /src/tests/elementary
parentaef0da9dd296b4399c7e0a94fcb4a1975258c442 (diff)
efl_ui_test_widget: Fix resource leak
Summary: Coverity reports that we leak the storage returned from eina_array_new here, so lets add a call to eina_array_free Fixes CID1400857 @fix Depends on D8775 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8776
Diffstat (limited to 'src/tests/elementary')
-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 9a402aa020..f9e45ad79f 100644
--- a/src/tests/elementary/efl_ui_test_widget.c
+++ b/src/tests/elementary/efl_ui_test_widget.c
@@ -119,6 +119,7 @@ EFL_START_TEST(efl_ui_test_widget_widget_sub_iterator)
119 } 119 }
120 eina_iterator_free(it); 120 eina_iterator_free(it);
121 ck_assert_int_eq(eina_array_count(a), 0); 121 ck_assert_int_eq(eina_array_count(a), 0);
122 eina_array_free(a);
122} 123}
123EFL_END_TEST 124EFL_END_TEST
124 125