elementary: Fixed memory leak when using --test-win-only
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 13:57:54 +0000 (13:57 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 13:57:54 +0000 (13:57 +0000)
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68318 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test.c

index 7afae04..f5b653f 100644 (file)
@@ -560,7 +560,13 @@ add_tests:
      }
    tt = t;
 
-   if (test_win_only) return;
+   if (test_win_only)
+     {
+        EINA_LIST_FREE(tests, t)
+           free (t);
+
+        return;
+     }
 
    if (tests)
      {