aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:42:08 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:42:08 +0200
commit2d947481337180c96a48d59c91b5f6300c30bb36 (patch)
tree3f59bd4b0ff10171c3e41e9fd80d5435471e6871
parenteina_test_file: Fix memory leak (diff)
downloadefl-2d947481337180c96a48d59c91b5f6300c30bb36.tar.gz
efl_check: Fix memory leak
Summary: Coverity reports that we leak variable 'n' here (memory returned from strdup) so let's free it Fixes CID1401070 @fix Depends on https://phab.enlightenment.org/D8759 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8760
-rw-r--r--src/tests/efl_check.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h
index aa2627cbd8..2738f51db0 100644
--- a/src/tests/efl_check.h
+++ b/src/tests/efl_check.h
@@ -273,6 +273,7 @@ _efl_suite_run_end(SRunner *sr, const char *name)
}
snprintf(buf, sizeof(buf), TESTS_BUILD_DIR "/check-results-%s.xml", n);
srunner_set_xml(sr, buf);
+ free(n);
}
else
srunner_set_xml(sr, TESTS_BUILD_DIR "/check-results.xml");