mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
This patch closes the file descriptor fd on error return to avoid
resource leak.
Fixes: ec7ee95db9
("contrib/plugins: fix coverity warning in lockstep")
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
Message-Id: <20231018025225.1640122-1-liucong2@kylinos.cn>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231029145033.592566-20-alex.bennee@linaro.org>