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
This commit is contained in:
Christopher Michael 2019-05-02 13:42:08 +02:00 committed by Xavi Artigas
parent a2e8747ec8
commit 2d94748133
1 changed files with 1 additions and 0 deletions

View File

@ -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");