From 25ad870b507fe4b9fbd2c98c9a64f7aee65e39a9 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 12 Feb 2026 02:33:39 +0100 Subject: [PATCH] sendfile: Fix file-descriptor leak in compression. --- src/compress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compress.c b/src/compress.c index e1f05fa..eabea8d 100644 --- a/src/compress.c +++ b/src/compress.c @@ -283,6 +283,8 @@ int ccopen(char *path, struct stat *sb, char *accept, const char **encoding) msb.st_mtime = sb->st_mtime; msb.st_ctime = sb->st_ctime; mtype = type; + } else { + close(efd); } } } -- 2.39.5