From: Christopher Michael Date: Thu, 2 May 2019 11:42:08 +0000 (+0200) Subject: efl_check: Fix memory leak X-Git-Tag: accepted/tizen/unified/20190509.041000~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d67b103aabba8b02d824aef0f1ca7d1188072964;p=platform%2Fupstream%2Fefl.git 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 D8759 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8760 --- diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h index aa2627c..2738f51 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");