stefan pushed a commit to branch master.

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

commit 02d47fd61a007a654a782e83517ea3531921316b
Author: Christopher Michael <cp.mich...@samsung.com>
Date:   Tue Mar 12 09:51:25 2019 -0400

    efl_core_command_line: Fix resource leak
    
    Small patch to fix a resource leak. Variable 'command' goes out of
    scope here which causes a leak.
    
    Fixes Coverity CID1399085
    
    Reviewed-by: Stefan Schmidt <ste...@datenfreihafen.org>
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D8308
---
 src/lib/ecore/efl_core_command_line.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore/efl_core_command_line.c 
b/src/lib/ecore/efl_core_command_line.c
index 54d21281d8..b4791a94ee 100644
--- a/src/lib/ecore/efl_core_command_line.c
+++ b/src/lib/ecore/efl_core_command_line.c
@@ -229,6 +229,7 @@ _efl_core_command_line_command_array_set(Eo *obj 
EINA_UNUSED, Efl_Core_Command_L
                   eina_stringshare_del(content);
                }
              eina_array_free(array);
+             eina_strbuf_free(command);
              return EINA_FALSE;
           }
 

-- 


Reply via email to