From 7855069655b74d39710615ccf093f95674cfa136 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Thu, 24 Oct 2024 18:39:55 +0200 Subject: [PATCH] BUG/MINOR: mworker/cli: fix mworker_cli_global_proxy_new_listener There is no need to close proc->ipc_fd[0] on the error path in mworker_cli_global_proxy_new_listener(), as it's already closed before by the caller. --- src/cli.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 0d71280c28..aa3709c19c 100644 --- a/src/cli.c +++ b/src/cli.c @@ -3623,7 +3623,6 @@ int mworker_cli_global_proxy_new_listener(struct mworker_proc *proc) return 0; error: - close(proc->ipc_fd[0]); close(proc->ipc_fd[1]); free(err);