tools/vm/page_owner_sort: free memory before exit
authorJianlin Lv <iecedge@gmail.com>
Mon, 19 Dec 2022 16:49:17 +0000 (16:49 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:45 +0000 (17:12 -0800)
commitef1faf0e370a8e33fe625088ddc5fde02cf8c4c4
tree3a48aab6932e9207aebbc586f3a402aeefe204f2
parent44383cef54c0ce1201f884d83cc2b367bc5aa4f7
tools/vm/page_owner_sort: free memory before exit

Although when a process terminates, the kernel will removes memory
associated with that process, It's neither good style nor proper design to
leave it to kernel.  This patch free allocated memory before process exit.

Link: https://lkml.kernel.org/r/20221219164917.14132-1-iecedge@gmail.com
Signed-off-by: Jianlin Lv <iecedge@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/vm/page_owner_sort.c