xartigas pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=c380c496dc08ed4101d9fe6b33aa465b324b1ada
commit c380c496dc08ed4101d9fe6b33aa465b324b1ada Author: Christopher Michael <[email protected]> Date: Thu May 2 13:48:27 2019 +0200 eina_test_ustr: Fix resource leak Summary: Coverity reports that we leak 'buf' here so add a call to free Fixes CID1400784 @fix Depends on D8781 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8782 --- src/tests/eina/eina_test_ustr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/eina/eina_test_ustr.c b/src/tests/eina/eina_test_ustr.c index 6c8edcf258..308059bda9 100644 --- a/src/tests/eina/eina_test_ustr.c +++ b/src/tests/eina/eina_test_ustr.c @@ -295,7 +295,7 @@ EFL_START_TEST(eina_unicode_strdup_test) buf = eina_unicode_strdup(EMPTYSTR); fail_if(!buf); fail_if(buf[0] != 0); - + free(buf); } EFL_END_TEST --
