aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:48:00 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:48:00 +0200
commit9ea2e60b29077d4446b6cb9d48ae83b44feb5af2 (patch)
treee9d3eb637c26036a50ceb144dff90db611d4dc0b
parentemile_test_base64: Fix resource leak (diff)
downloadefl-9ea2e60b29077d4446b6cb9d48ae83b44feb5af2.tar.gz
ecore_test_ecore_file: Fix resource leak
Summary: Coverity reports that we leak the store returned from ecore_file_realpath so add a call to free the returned storage when we are done with it Fixes CID1400825 @fix Depends on https://phab.enlightenment.org/D8777 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8778
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index 2f1648f793..8fff2eb2e4 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -466,6 +466,7 @@ EFL_START_TEST(ecore_test_ecore_file_monitor)
_writeToFile(file_name, random_text);
ck_assert_str_eq(ecore_file_monitor_path_get(mon), realp);
+ free(realp);
ret = ecore_file_mksubdirs(src_dir, sub_dir);
fail_if(ret != 1);
@@ -486,7 +487,6 @@ EFL_START_TEST(ecore_test_ecore_file_monitor)
ret = ecore_file_shutdown();
fail_if(ret != 0);
-
}
EFL_END_TEST