From: Christopher Michael Date: Thu, 2 May 2019 11:47:28 +0000 (+0200) Subject: eina_test_file: Fix resource leak X-Git-Tag: accepted/tizen/unified/20190509.041000~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98831d3bcff83783411aaa1ada62b3794e150de4;p=platform%2Fupstream%2Fefl.git 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 --- 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