summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-15 15:02:56 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-12-03 11:06:37 -0800
commit3808637283efafd6c70a9fcf35d962cab2bbd8e1 (patch)
tree899e04534971cadc2f0104b94183f601887c23d7
parentcf5b1624bb5b62c44bf581550568940dcd92009f (diff)
elementary_test: fix memory leak
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/bin/test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index cb602f734..8019ac046 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -987,7 +987,7 @@ elm_main(int argc, char **argv)
987 "$ elementary_test -to [TEST_NAME]\n\n" 987 "$ elementary_test -to [TEST_NAME]\n\n"
988 "Examples:\n" 988 "Examples:\n"
989 "$ elementary_test -to Button\n\n"); 989 "$ elementary_test -to Button\n\n");
990 exit(EXIT_SUCCESS); 990 goto end;
991 } 991 }
992 autorun = argv[1]; 992 autorun = argv[1];
993 } 993 }
@@ -1013,6 +1013,9 @@ elm_main(int argc, char **argv)
1013 EINA_LIST_FREE(tests, t) 1013 EINA_LIST_FREE(tests, t)
1014 free(t); 1014 free(t);
1015 1015
1016end:
1017 eina_log_domain_unregister(_log_domain);
1018
1016 /* exit code */ 1019 /* exit code */
1017 return 0; 1020 return 0;
1018} 1021}