aboutsummaryrefslogtreecommitdiffstats
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
parentefl_ui_test_widget: Fix resource leak (diff)
downloadefl-524d4bf65cbf7b7246d0d60c429ce554ee20df68.tar.gz
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 https://phab.enlightenment.org/D8779 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8780
-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)
eina_strbuf_reset(str);
}
+ eina_binbuf_free(buffer);
+
//Failure scenarios.
decoded = emile_base64_decode(NULL);
fail_if(decoded);