summaryrefslogtreecommitdiff
path: root/src/tests/emile
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 /src/tests/emile
parent9bf322a30ba610439c554de446c0fddbe00e7593 (diff)
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 D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8763
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 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)
112 112
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 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3)); 116 fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
116} 117}
117EFL_END_TEST 118EFL_END_TEST