tools/mm: free the allocated memory
authorLiu Jing <liujing@cmss.chinamobile.com>
Tue, 22 Oct 2024 01:25:26 +0000 (09:25 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:17 +0000 (20:11 -0800)
commit3f1f947a322d2bdf0b16ff9158ce6be7cc23b974
treedf285200a3fb4af904a7b3cea6d77b559e38145c
parent39ac99852fca98ca44d52716d792dfaf24981f53
tools/mm: free the allocated memory

The comm_str memory needs to be freed if the search_pattern function call
fails in get_comm

[akpm@linux-foundation.org: fix whitespace]
Link: https://lkml.kernel.org/r/20241022012526.7597-1-liujing@cmss.chinamobile.com
Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/mm/page_owner_sort.c