aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:55 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:55 +0200
commit403f681d4f5ecad69b4d7d70a601b2b2e159d38e (patch)
treedd1826992ba2f45f8718777813db24435df4fbe8
parentefl_ui_test_widget: Fix resource leak (diff)
downloadefl-403f681d4f5ecad69b4d7d70a601b2b2e159d38e.tar.gz
emile_test_base64: Fix resource leak
Summary: Coverity reports that we leak the storage returned from eina_binbuf_new here, so lets add a call to eina_binbuf_free before we exit Fixes CID1400852 @fix Depends on https://phab.enlightenment.org/D8776 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8777
-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 31a4adbf72..aa6d7b9657 100644
--- a/src/tests/emile/emile_test_base64.c
+++ b/src/tests/emile/emile_test_base64.c
@@ -113,6 +113,7 @@ EFL_START_TEST(emile_test_base64_url)
eina_strbuf_append(str, "TWFu");
decoded = emile_base64url_decode(str);
eina_strbuf_free(str);
+ eina_binbuf_free(buffer);
fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
eina_binbuf_free(decoded);
}