aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 13:44:22 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 13:44:22 +0200
commitae61295e9ab554249ef3a9444d696680220f1b55 (patch)
tree77e1a9cedd0f6bfad7a1c1c4a8da53d0672d9b47
parentevas_test_mesh: Fix memory leak (diff)
downloadefl-ae61295e9ab554249ef3a9444d696680220f1b55.tar.gz
eina_test_binbuf: Fix memory leak
Summary: Coverity reports that we leak 'test_buf' here so add eina_binbuf_free to plug the leak Fixes CID1401004 @fix Depends on https://phab.enlightenment.org/D8764 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8765
-rw-r--r--src/tests/eina/eina_test_binbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/eina/eina_test_binbuf.c b/src/tests/eina/eina_test_binbuf.c
index 1f8fce805f..929d549a4c 100644
--- a/src/tests/eina/eina_test_binbuf.c
+++ b/src/tests/eina/eina_test_binbuf.c
@@ -76,6 +76,7 @@ EFL_START_TEST(binbuf_simple)
eina_binbuf_reset(buf);
fail_if(eina_binbuf_length_get(buf) != 0);
+ eina_binbuf_free(test_buf);
eina_binbuf_free(buf);
#undef TEXT