From 2229fd91f7230ae7068814ae029b733945852eb1 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 2 Apr 2024 09:17:06 +0200 Subject: Kernel: Fix some memory leaks --- userland/libc/fcntl/open_process.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 userland/libc/fcntl/open_process.c (limited to 'userland/libc/fcntl') diff --git a/userland/libc/fcntl/open_process.c b/userland/libc/fcntl/open_process.c new file mode 100644 index 0000000..8486728 --- /dev/null +++ b/userland/libc/fcntl/open_process.c @@ -0,0 +1,6 @@ +#include +#include + +int open_process(int pid) { + RC_ERRNO(syscall(SYS_OPEN_PROCESS, pid, 0, 0, 0, 0)); +} -- cgit v1.2.3