From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
To: trinity@vger.kernel.org
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: [PATCH] Free correct argument in post_ppoll()
Date: Wed, 18 Nov 2015 15:58:04 +0200 [thread overview]
Message-ID: <1447855084-64843-1-git-send-email-kirill.shutemov@linux.intel.com> (raw)
sanitise_ppoll() allocates first and third arguments and we need to free
them in post_ppoll(), not first and fourth.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
syscalls/poll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syscalls/poll.c b/syscalls/poll.c
index 2e491eca4ba1..da9ac671c4bc 100644
--- a/syscalls/poll.c
+++ b/syscalls/poll.c
@@ -80,7 +80,7 @@ static void sanitise_ppoll(struct syscallrecord *rec)
static void post_ppoll(struct syscallrecord *rec)
{
freeptr(&rec->a1);
- freeptr(&rec->a4);
+ freeptr(&rec->a3);
}
struct syscallentry syscall_ppoll = {
--
2.6.2
reply other threads:[~2015-11-18 13:58 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=1447855084-64843-1-git-send-email-kirill.shutemov@linux.intel.com \
--to=kirill.shutemov@linux.intel.com \
--cc=trinity@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).