From: Christopher Michael Date: Thu, 2 May 2019 11:43:57 +0000 (+0200) Subject: evas_test_mesh: Fix memory leak X-Git-Tag: accepted/tizen/unified/20190509.041000~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=374783a74d016700e17d16e336e617d84957c21b;p=platform%2Fupstream%2Fefl.git evas_test_mesh: Fix memory leak Summary: Coverity reports that we leak file_mask variable here (storage returned from strdup), so lets free the variable before we exit the test Fixes CID1401009 @fix Depends on D8763 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8764 --- diff --git a/src/tests/evas/evas_test_mesh.c b/src/tests/evas/evas_test_mesh.c index aba0373..d5777ed 100644 --- a/src/tests/evas/evas_test_mesh.c +++ b/src/tests/evas/evas_test_mesh.c @@ -169,6 +169,7 @@ EFL_START_TEST(evas_object_mesh_loader_saver) unlink(tmp); + free(file_mask); evas_free(e); } EFL_END_TEST