cedric pushed a commit to branch master.

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

commit 445cfab1932f5b068f5286d6d41707e18a4ee9ca
Author: Cedric BAIL <[email protected]>
Date:   Fri Jan 11 17:58:23 2019 -0800

    ecore: fix memory leak when shutding down the application.
    
    Reviewed-by: Xavi Artigas <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7653
---
 src/lib/ecore/efl_loop.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index 5a7166cb48..44e9c872c9 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -173,6 +173,7 @@ efl_loop_exit_code_process(Eina_Value *value)
              out = stderr;
           }
         fprintf(out, "%s\n", msg);
+        free(msg);
      }
    return r;
 }
@@ -361,6 +362,8 @@ _efl_loop_efl_object_destructor(Eo *obj, Efl_Loop_Data *pd)
    pd->env.environ_copy = NULL;
    eina_lock_release(&_environ_lock);
 
+   eina_value_flush(&pd->exit_code);
+
    efl_destructor(efl_super(obj, EFL_LOOP_CLASS));
 }
 

-- 


Reply via email to