From 927fcddebf783c97686cee030a0c3c231e47bb47 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 17 Aug 2019 09:08:58 +0000 Subject: [PATCH] Add missed va_end call --- examples/kernel-exploit/CVE-2017-16995.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/kernel-exploit/CVE-2017-16995.c b/examples/kernel-exploit/CVE-2017-16995.c index 5ac8b00..8869b5a 100644 --- a/examples/kernel-exploit/CVE-2017-16995.c +++ b/examples/kernel-exploit/CVE-2017-16995.c @@ -317,6 +317,7 @@ void redact(const char *fmt, ...) { va_start(args, fmt); if(doredact) { fprintf(stdout, "[!] ( ( R E D A C T E D ) )\n"); + va_end(args); return; } fprintf(stdout, "[*] ");