aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:28 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:28 +0200
commitf537164024ec3985d924b1a11e01ca98735bb398 (patch)
treed3d3abe2b79067fb02e0de869e19c5f771fef7a0
parentevas_test_image: Fix resource leak (diff)
downloadefl-f537164024ec3985d924b1a11e01ca98735bb398.tar.gz
eina_test_file: Fix resource leak
Summary: Coverity reports that we leak 'path' here, so free the returned string Fixes CID1400926 @fix Depends on https://phab.enlightenment.org/D8771 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8772
-rw-r--r--src/tests/eina/eina_test_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/eina/eina_test_file.c b/src/tests/eina/eina_test_file.c
index 1fc7b239ae..3d75f5efcb 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