diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-16 17:40:07 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:17:57 +0200 |
commit | dc278c3aa191a48a5bf388159092123e0e2d2fb9 (patch) | |
tree | b58c1a99a901e383a75d651adde5ad71fca1d4c6 | |
parent | 4ca493a86a0b877a460423fbd7c9b091d418d9a9 (diff) | |
download | serenity-dc278c3aa191a48a5bf388159092123e0e2d2fb9.zip |
LibC: Missing varargs cleanup in fcntl
-rw-r--r-- | Libraries/LibC/fcntl.cpp | 1 |
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); } |