From 98831d3bcff83783411aaa1ada62b3794e150de4 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 2 May 2019 13:47:28 +0200 Subject: [PATCH] eina_test_file: Fix resource leak Summary: Coverity reports that we leak 'path' here, so free the returned string Fixes CID1400926 @fix Depends on D8771 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8772 --- src/tests/eina/eina_test_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/eina/eina_test_file.c b/src/tests/eina/eina_test_file.c index 1fc7b23..3d75f5e 100644 --- a/src/tests/eina/eina_test_file.c +++ b/src/tests/eina/eina_test_file.c @@ -532,8 +532,8 @@ EFL_START_TEST(eina_test_file_path) { path = eina_file_path_sanitize(sanitize[i].test); fail_if(strcmp(path, sanitize[i].result)); + free(path); } - } EFL_END_TEST -- 2.7.4