diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-03-12 09:51:25 -0400 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2019-03-13 11:51:56 +0100 |
commit | 02d47fd61a007a654a782e83517ea3531921316b (patch) | |
tree | b690ae5575bea0dfe0929d0499e4034886ee0294 | |
parent | ead7f10c0953d0ec1cfa978796b4b6a639be1620 (diff) | |
download | efl-02d47fd61a007a654a782e83517ea3531921316b.tar.gz |
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 <stefan@datenfreihafen.org>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8308
-rw-r--r-- | src/lib/ecore/efl_core_command_line.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |