summaryrefslogtreecommitdiff
path: root/src/tests/emile
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 /src/tests/emile
parent8eae5d32150d17a2c128246097ed22fdbb857f74 (diff)
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
Diffstat (limited to 'src/tests/emile')
-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)
113 eina_strbuf_append(str, "TWFu"); 113 eina_strbuf_append(str, "TWFu");
114 decoded = emile_base64url_decode(str); 114 decoded = emile_base64url_decode(str);
115 eina_strbuf_free(str); 115 eina_strbuf_free(str);
116 eina_binbuf_free(buffer);
116 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3)); 117 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
117 eina_binbuf_free(decoded); 118 eina_binbuf_free(decoded);
118} 119}