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 <[email protected]>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to