aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:48:22 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:48:22 +0200
commitab2746571c56e0f817fe5e320114d4dae667cdf2 (patch)
tree77f861e99be0778a436dbb8b29b08d188b3286e1
parentemile_test_base64: Fix resource leak (diff)
downloadefl-ab2746571c56e0f817fe5e320114d4dae667cdf2.tar.gz
emile_test_base64: Fix memory leak
Summary: Coverity reports that we leak 'str' here, so change the call from eina_strbuf_reset to eina_strbuf_free Fixes CID1400815 @fix Depends on https://phab.enlightenment.org/D8780 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8781
-rw-r--r--src/tests/emile/emile_test_base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c
index 725f04a39d..292511c270 100644
--- a/src/tests/emile/emile_test_base64.c
+++ b/src/tests/emile/emile_test_base64.c
@@ -74,7 +74,7 @@ EFL_START_TEST(emile_test_base64_normal)
eina_strbuf_append(str, "abc");
decoded = emile_base64_decode(str);
- eina_strbuf_reset(str);
+ eina_strbuf_free(str);
fail_if(decoded);
}
EFL_END_TEST