mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user