diff options
author | Anton Kling <anton@kling.gg> | 2024-04-02 09:17:06 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-02 09:39:03 +0200 |
commit | 2229fd91f7230ae7068814ae029b733945852eb1 (patch) | |
tree | 416487f8c66c389c57dee465f648362ca59b8f23 /userland/minibox/utilities | |
parent | 7eceb43433634ee253507208baf1d8298b40e377 (diff) |
Kernel: Fix some memory leaks
Diffstat (limited to 'userland/minibox/utilities')
-rw-r--r-- | userland/minibox/utilities/kill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/userland/minibox/utilities/kill.c b/userland/minibox/utilities/kill.c index 2888b3b..8cc6877 100644 --- a/userland/minibox/utilities/kill.c +++ b/userland/minibox/utilities/kill.c @@ -1,9 +1,12 @@ // kill #include "include.h" +#include <fcntl.h> #include <signal.h> #include <stdio.h> int kill_main(int argc, char **argv) { - kill(4, SIGTERM); + int fd = open_process(4); + kill(fd, SIGTERM); + close(fd); return 0; } |