[prevent][76366] Fix for resource leak 82/176682/1
authorPaweł Stawicki <p.stawicki@samsung.com>
Fri, 20 Apr 2018 16:15:56 +0000 (18:15 +0200)
committerPaweł Stawicki <p.stawicki@samsung.com>
Fri, 20 Apr 2018 16:15:56 +0000 (18:15 +0200)
Change-Id: Ieaab30db6d430f898ab3959528bacd4056bfefd8

test/at_spi2_tool.c

index 7039fb5..cca84f1 100644 (file)
@@ -655,9 +655,8 @@ static void _atspi_tree_traverse(const char *app_name, bool dump, bool check, bo
                        } else {
                                printf("\n");
                        }
-
-                       free(name);
                }
+               free(name);
        }
 
        if (!app_name_matched && (dump || check))