summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-16 17:40:07 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-17 09:17:57 +0200
commitdc278c3aa191a48a5bf388159092123e0e2d2fb9 (patch)
treeb58c1a99a901e383a75d651adde5ad71fca1d4c6
parent4ca493a86a0b877a460423fbd7c9b091d418d9a9 (diff)
downloadserenity-dc278c3aa191a48a5bf388159092123e0e2d2fb9.zip
LibC: Missing varargs cleanup in fcntl
-rw-r--r--Libraries/LibC/fcntl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibC/fcntl.cpp b/Libraries/LibC/fcntl.cpp
index 4716d1b862..dd71fd1559 100644
--- a/Libraries/LibC/fcntl.cpp
+++ b/Libraries/LibC/fcntl.cpp
@@ -38,6 +38,7 @@ int fcntl(int fd, int cmd, ...)
va_start(ap, cmd);
u32 extra_arg = va_arg(ap, u32);
int rc = syscall(SC_fcntl, fd, cmd, extra_arg);
+ va_end(ap);
__RETURN_WITH_ERRNO(rc, rc, -1);
}