diff options
-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); } |