]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 1 Nov 2024 04:29:22 +0000 (21:29 -0700)
commitbb07413ec23152539544e6fac879909bab17c76a
treea47ec6a6f80faa197ba52a0a42e5cb8fdf5fceed
parentb7c3b9b570676ea85166f77f562ef302cd7d28df
tools/mm: free the allocated memory

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

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