From: Christopher Michael Date: Thu, 2 May 2019 11:47:55 +0000 (+0200) Subject: emile_test_base64: Fix resource leak X-Git-Tag: accepted/tizen/unified/20190509.041000~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=229135d855d6b51a10eec1f360ec9c548acd0c14;p=platform%2Fupstream%2Fefl.git 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 D8776 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8777 --- diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c index 31a4adb..aa6d7b9 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); }