From 66318e2778f6b79d25aee5a3d52f02b06ba5c2b2 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 2 May 2019 13:43:32 +0200 Subject: [PATCH] emile_test_base64: Fix resource leak Summary: Coverity reports that we leak storage of variable 'str' here, so call eina_strbuf_free Fixes CID1401062 @fix Depends on D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8763 --- src/tests/emile/emile_test_base64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c index 0ffcf2a..8870ca87 100644 --- a/src/tests/emile/emile_test_base64.c +++ b/src/tests/emile/emile_test_base64.c @@ -112,6 +112,7 @@ EFL_START_TEST(emile_test_base64_url) eina_strbuf_append(str, "TWFu"); decoded = emile_base64url_decode(str); + eina_strbuf_free(str); fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3)); } EFL_END_TEST -- 2.7.4