From f791aa01fad7e81223808584212c6a1a4c80ca07 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 2 Jan 2023 14:10:38 -0500 Subject: finish restructuring --- os-posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os-posix.c') diff --git a/os-posix.c b/os-posix.c index 5b37268..5b67836 100644 --- a/os-posix.c +++ b/os-posix.c @@ -1,4 +1,5 @@ #include "os.h" +#include "util.h" #include #include #include @@ -178,7 +179,6 @@ Process *process_run_ex(const char *command, const ProcessSettings *settings) { } } - bool success = false; pid_t pid = fork(); if (pid == 0) { // child process @@ -295,6 +295,7 @@ void process_kill(Process *proc) { waitpid(proc->pid, NULL, 0); proc->pid = 0; process_close_pipes(proc); + free(proc); } int process_check_status(Process *proc, char *message, size_t message_size) { -- cgit v1.2.3