xartigas pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9bf322a30ba610439c554de446c0fddbe00e7593

commit 9bf322a30ba610439c554de446c0fddbe00e7593
Author: Christopher Michael <[email protected]>
Date:   Thu May 2 13:43:04 2019 +0200

    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 D8760
    
    Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi
    
    Reviewed By: segfaultxavi
    
    Subscribers: segfaultxavi, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D8761
---
 src/tests/elementary/elm_test_widget_focus.c | 2 ++
 1 file changed, 2 insertions(+)

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
 

-- 


Reply via email to