cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3808637283efafd6c70a9fcf35d962cab2bbd8e1

commit 3808637283efafd6c70a9fcf35d962cab2bbd8e1
Author: Jean Guyomarc'h <jean.guyoma...@openwide.fr>
Date:   Thu Oct 15 15:02:56 2015 +0200

    elementary_test: fix memory leak
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/bin/test.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/test.c b/src/bin/test.c
index cb602f7..8019ac0 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -987,7 +987,7 @@ elm_main(int argc, char **argv)
                     "$ elementary_test -to [TEST_NAME]\n\n"
                     "Examples:\n"
                     "$ elementary_test -to Button\n\n");
-             exit(EXIT_SUCCESS);
+             goto end;
           }
         autorun = argv[1];
      }
@@ -1013,6 +1013,9 @@ elm_main(int argc, char **argv)
    EINA_LIST_FREE(tests, t)
      free(t);
 
+end:
+   eina_log_domain_unregister(_log_domain);
+
    /* exit code */
    return 0;
 }

-- 


Reply via email to