tools/zmqsend: close the input FILE

Fixes CVE-2026-30998

Fixes: Resource leak
Found-by: Xinghang Lv
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-05-03 13:14:02 -03:00
parent 144af8f81a
commit 18b83f2d0a
+2
View File
@@ -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;