Call kfree on list2 after using it.

Signed-off-by: Valentin Ilie <valentin.i...@gmail.com>
---
 tools/vm/page_owner_sort.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/vm/page_owner_sort.c b/tools/vm/page_owner_sort.c
index 77147b4..92292d5 100644
--- a/tools/vm/page_owner_sort.c
+++ b/tools/vm/page_owner_sort.c
@@ -139,6 +139,8 @@ int main(int argc, char **argv)
 
        for (i = 0; i < count; i++)
                fprintf(fout, "%d times:\n%s\n", list2[i].num, list2[i].txt);
+       
+       kfree(list2);
 
        return 0;
 }
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to