devilhorns pushed a commit to branch master.

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

commit 81d76776be38705e0105a5aa2304603eb1654688
Author: Chris Michael <[email protected]>
Date:   Thu Oct 5 09:46:18 2017 -0400

    eolian-bin: Free previously allocated eina_strbuf
    
    Coverity reports that the eina_strbuf 'param_call' leaks when it goes
    out of scope here, so fix the leak by freeing the strbuf
    
    Fixes CID1381502
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/eolian/sources.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 353c78b7d6..c8d71d4b24 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -386,6 +386,8 @@ _gen_func(const Eolian_Unit *src, const Eolian_Class *cl,
                eina_strbuf_free(fallback_free_ownership);
                fallback_free_ownership = NULL;
             }
+
+        eina_strbuf_free(param_call);
      }
 
    /* property values or method params if applicable */

-- 


Reply via email to