aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:43:04 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:43:04 +0200
commit9bf322a30ba610439c554de446c0fddbe00e7593 (patch)
treee9913f6acf49a5772e29efa278d8d7c5ff4ec712
parentefl_check: Fix memory leak (diff)
downloadefl-9bf322a30ba610439c554de446c0fddbe00e7593.tar.gz
elm_test_widget_focus: Fix memory leak
Summary: Coverity reports that we leak the 'map' hash here, so lets add a call to free the hash Fixes CID1401069 @fix Depends on https://phab.enlightenment.org/D8760 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8761
-rw-r--r--src/tests/elementary/elm_test_widget_focus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_test_widget_focus.c b/src/tests/elementary/elm_test_widget_focus.c
index 6b8ac871ea..e4e04a1dc2 100644
--- a/src/tests/elementary/elm_test_widget_focus.c
+++ b/src/tests/elementary/elm_test_widget_focus.c
@@ -205,6 +205,8 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
ck_assert_int_eq(elm_object_focus_get(resettor), EINA_TRUE);
ck_assert_int_eq(elm_object_focus_get(o), EINA_FALSE);
}
+
+ eina_hash_free(map);
}
EFL_END_TEST