efl/efreet: fix leaking test list and return code
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 14 Jan 2013 21:04:35 +0000 (21:04 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 14 Jan 2013 21:04:35 +0000 (21:04 +0000)
SVN revision: 82781

src/tests/efreet/main.c

index 10f3575ffd5ab8bcf0259fc7db1f0d1899e51c8e..d5ef3becad393ddb8b81c8523ab042dd3f384653 100644 (file)
@@ -123,7 +123,8 @@ main(int argc, char ** argv)
                {
                   for (i = 0; tests[i].name; i++)
                     printf("%s\n", tests[i].name);
-                  return 1;
+                  run = eina_list_free(run);
+                  return 0;
                }
              run = eina_list_append(run, argv[i]);
           }