xartigas pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ae61295e9ab554249ef3a9444d696680220f1b55

commit ae61295e9ab554249ef3a9444d696680220f1b55
Author: Christopher Michael <[email protected]>
Date:   Thu May 2 13:44:22 2019 +0200

    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 D8764
    
    Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi
    
    Reviewed By: segfaultxavi
    
    Subscribers: segfaultxavi, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D8765
---
 src/tests/eina/eina_test_binbuf.c | 1 +
 1 file changed, 1 insertion(+)

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

-- 


Reply via email to