From: Michael Tremer Date: Thu, 9 Oct 2025 17:44:23 +0000 (+0000) Subject: command: Close the pidfd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a786907ea676841680e6dc8d17dd1338e9d67e35;p=telemetry.git command: Close the pidfd Signed-off-by: Michael Tremer --- diff --git a/src/daemon/command.c b/src/daemon/command.c index 99b5a86..eb23f2a 100644 --- a/src/daemon/command.c +++ b/src/daemon/command.c @@ -105,6 +105,10 @@ static void collecty_command_free(collecty_command* self) { collecty_command_close_pipe(self->stdout.pipes); collecty_command_close_pipe(self->stderr.pipes); + // Close pidfd + if (self->pidfd >= 0) + close(self->pidfd); + // Free buffers if (self->stdout.buffer) collecty_buffer_unref(self->stdout.buffer);