summaryrefslogtreecommitdiff
path: root/src/tests/emile
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:47:45 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:47:45 +0200
commitaef0da9dd296b4399c7e0a94fcb4a1975258c442 (patch)
tree0c5c9479e3b2cf17bf74476655404596190e7b5a /src/tests/emile
parent06263f319fc3c1bb7a2697db47ecdf02432ec61b (diff)
emile_test_base64: Fix resource leak
Summary: Coverity reports that we leak the storage of variable 'decoded' here, so lets add a call to eina_binbuf_free Fixes CID1400868 @fix Depends on D8774 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8775
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 8870ca8722..31a4adbf72 100644
--- a/src/tests/emile/emile_test_base64.c
+++ b/src/tests/emile/emile_test_base64.c
@@ -114,6 +114,7 @@ EFL_START_TEST(emile_test_base64_url)
114 decoded = emile_base64url_decode(str); 114 decoded = emile_base64url_decode(str);
115 eina_strbuf_free(str); 115 eina_strbuf_free(str);
116 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3)); 116 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
117 eina_binbuf_free(decoded);
117} 118}
118EFL_END_TEST 119EFL_END_TEST
119 120