From 4b870d6a36db0555147b19f93b38c763bc14dbc4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 25 Feb 2019 17:12:57 -0500 Subject: [PATCH] eina: free vpath hash on shutdown Summary: this resolves a considerable number of leaks in unit tests Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8020 --- src/lib/eina/eina_vpath.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c index 23cd3b5..c74749c 100644 --- a/src/lib/eina/eina_vpath.c +++ b/src/lib/eina/eina_vpath.c @@ -204,6 +204,8 @@ eina_vpath_init(void) Eina_Bool eina_vpath_shutdown(void) { + eina_hash_free(vpath_data); + vpath_data = NULL; eina_log_domain_unregister(_eina_vpath_log_dom); _eina_vpath_log_dom = -1; return EINA_TRUE; -- 2.7.4