From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,liujing@cmss.chinamobile.com,akpm@linux-foundation.org
Subject: [merged mm-stable] tools-mm-free-the-allocated-memory.patch removed from -mm tree
Date: Tue, 05 Nov 2024 17:01:02 -0800 [thread overview]
Message-ID: <20241106010103.72F73C4CED2@smtp.kernel.org> (raw)
The quilt patch titled
Subject: tools/mm: free the allocated memory
has been removed from the -mm tree. Its filename was
tools-mm-free-the-allocated-memory.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Liu Jing <liujing@cmss.chinamobile.com>
Subject: tools/mm: free the allocated memory
Date: Tue, 22 Oct 2024 09:25:26 +0800
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 | 1 +
1 file changed, 1 insertion(+)
--- a/tools/mm/page_owner_sort.c~tools-mm-free-the-allocated-memory
+++ a/tools/mm/page_owner_sort.c
@@ -377,6 +377,7 @@ static char *get_comm(char *buf)
if (errno != 0) {
if (debug_on)
fprintf(stderr, "wrong comm in follow buf:\n%s\n", buf);
+ free(comm_str);
return NULL;
}
_
Patches currently in -mm which might be from liujing@cmss.chinamobile.com are
reply other threads:[~2024-11-06 1:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241106010103.72F73C4CED2@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=liujing@cmss.chinamobile.com \
--cc=mm-commits@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.