* [PATCH] Free correct argument in post_ppoll()
@ 2015-11-18 13:58 Kirill A. Shutemov
0 siblings, 0 replies; only message in thread
From: Kirill A. Shutemov @ 2015-11-18 13:58 UTC (permalink / raw)
To: trinity; +Cc: Kirill A. Shutemov
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-18 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-18 13:58 [PATCH] Free correct argument in post_ppoll() Kirill A. Shutemov
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 NNTP newsgroup(s).