From: Harald Nordgren via GitGitGadget Date: Wed, 21 Oct 2026 07:07:48 GMT Subject: [PATCH v2 1/2] imap-send: avoid leaking the tunnel command Message-ID: In-Reply-To: From: Harald Nordgren When imap.tunnel is set, imap_open_store() starts the tunnel but never releases the child_process used for it, which leaks its argument list. No test sets imap.tunnel, so the leak checker has not caught this. Only the pipes to the tunnel are needed once it is running, so release the rest right after starting it. Signed-off-by: Harald Nordgren --- imap-send.c | 1 + 1 file changed, 1 insertion(+) diff --git a/imap-send.c b/imap-send.c index bf1d2cf74d..6f76bade35 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1176,6 +1176,7 @@ static struct imap_store *imap_open_store(struct imap_server_conf *srvc, const c imap->buf.sock.fd[0] = tunnel.out; imap->buf.sock.fd[1] = tunnel.in; + child_process_clear(&tunnel); imap_info("OK\n"); } else { -- gitgitgadget