summaryrefslogtreecommitdiff
path: root/src/tests/emile
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:48:18 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:48:18 +0200
commit524d4bf65cbf7b7246d0d60c429ce554ee20df68 (patch)
treef23056bccf03eec05b65ccbbd94e4645cc232170 /src/tests/emile
parent25505c1431f27645e1fa2882253a0a6333c01948 (diff)
emile_test_base64: Fix resource leak
Summary: Coverity reports that we leak 'buffer' here so add a call to eina_binbuf_free Fixes CID1400820 @fix Depends on D8779 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8780
Diffstat (limited to 'src/tests/emile')
-rw-r--r--src/tests/emile/emile_test_base64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/emile/emile_test_base64.c b/src/tests/emile/emile_test_base64.c
index aa6d7b9657..725f04a39d 100644
--- a/src/tests/emile/emile_test_base64.c
+++ b/src/tests/emile/emile_test_base64.c
@@ -59,6 +59,8 @@ EFL_START_TEST(emile_test_base64_normal)
59 eina_strbuf_reset(str); 59 eina_strbuf_reset(str);
60 } 60 }
61 61
62 eina_binbuf_free(buffer);
63
62 //Failure scenarios. 64 //Failure scenarios.
63 decoded = emile_base64_decode(NULL); 65 decoded = emile_base64_decode(NULL);
64 fail_if(decoded); 66 fail_if(decoded);