aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:43:32 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:43:32 +0200
commitf4db22139fee416c42d58b65431a95eff43f0c35 (patch)
tree05a2c1494a5cec2f4b9da13d6e2a11e6b8b738e9
parentelm_test_widget_focus: Fix memory leak (diff)
downloadefl-f4db22139fee416c42d58b65431a95eff43f0c35.tar.gz
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 https://phab.enlightenment.org/D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8763
-rw-r--r--src/tests/emile/emile_test_base64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c
index 0ffcf2acc9..8870ca8722 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