From 18b83f2d0a0f9bcbafb0001a2911327c4b8df056 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 3 May 2026 13:14:02 -0300 Subject: [PATCH] tools/zmqsend: close the input FILE Fixes CVE-2026-30998 Fixes: Resource leak Found-by: Xinghang Lv Signed-off-by: James Almer --- tools/zmqsend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/zmqsend.c b/tools/zmqsend.c index 17a6194b28..a0142f436a 100644 --- a/tools/zmqsend.c +++ b/tools/zmqsend.c @@ -166,6 +166,8 @@ int main(int argc, char **argv) end: av_freep(&src_buf); + if (strcmp(infilename, "stdin")) + fclose(infile); zmq_close(socket); zmq_ctx_destroy(zmq_ctx); return ret;