summaryrefslogtreecommitdiff
path: root/src/tests/emile
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 /src/tests/emile
parent524d4bf65cbf7b7246d0d60c429ce554ee20df68 (diff)
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 D8780 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8781
Diffstat (limited to 'src/tests/emile')
-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)
74 74
75 eina_strbuf_append(str, "abc"); 75 eina_strbuf_append(str, "abc");
76 decoded = emile_base64_decode(str); 76 decoded = emile_base64_decode(str);
77 eina_strbuf_reset(str); 77 eina_strbuf_free(str);
78 fail_if(decoded); 78 fail_if(decoded);
79} 79}
80EFL_END_TEST 80EFL_END_TEST