summaryrefslogtreecommitdiff
path: root/src/tests/ecore
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 /src/tests/ecore
parent403f681d4f5ecad69b4d7d70a601b2b2e159d38e (diff)
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 D8777 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8778
Diffstat (limited to 'src/tests/ecore')
-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)
466 _writeToFile(file_name, random_text); 466 _writeToFile(file_name, random_text);
467 467
468 ck_assert_str_eq(ecore_file_monitor_path_get(mon), realp); 468 ck_assert_str_eq(ecore_file_monitor_path_get(mon), realp);
469 free(realp);
469 470
470 ret = ecore_file_mksubdirs(src_dir, sub_dir); 471 ret = ecore_file_mksubdirs(src_dir, sub_dir);
471 fail_if(ret != 1); 472 fail_if(ret != 1);
@@ -486,7 +487,6 @@ EFL_START_TEST(ecore_test_ecore_file_monitor)
486 487
487 ret = ecore_file_shutdown(); 488 ret = ecore_file_shutdown();
488 fail_if(ret != 0); 489 fail_if(ret != 0);
489
490} 490}
491EFL_END_TEST 491EFL_END_TEST
492 492