aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:48:27 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:48:27 +0200
commitc380c496dc08ed4101d9fe6b33aa465b324b1ada (patch)
tree28eb0bce69e6ee62d52bd0aa4798e37d4e1b046f
parentemile_test_base64: Fix memory leak (diff)
downloadefl-c380c496dc08ed4101d9fe6b33aa465b324b1ada.tar.gz
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 https://phab.enlightenment.org/D8781 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8782
-rw-r--r--src/tests/eina/eina_test_ustr.c2
1 files changed, 1 insertions, 1 deletions
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