]> git.proxmox.com Git - mirror_qemu.git/commit
dump: Add close fd on error return to avoid resource leak
authorZongmin Zhou <min_halo@163.com>
Tue, 7 Nov 2023 02:44:17 +0000 (10:44 +0800)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 12:08:49 +0000 (13:08 +0100)
commit95a40c44501b5e3b8d1922ea37f30142981b2b34
treeef771667e21784e54e23824a9e6587c8776f696c
parent547ec5a0a4f697323e313062fabdebefc964eb97
dump: Add close fd on error return to avoid resource leak

Reported-by: Coverity CID 1523842 (RESOURCE_LEAK)
Fixes: e6549197f7 ("dump: Add command interface for kdump-raw formats")
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231107024417.585475-1-min_halo@163.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
dump/dump.c