diff options
author | Zongmin Zhou <min_halo@163.com> | 2023-11-07 10:44:17 +0800 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 13:08:49 +0100 |
commit | 95a40c44501b5e3b8d1922ea37f30142981b2b34 (patch) | |
tree | ef771667e21784e54e23824a9e6587c8776f696c /hw/ide/core.c | |
parent | 547ec5a0a4f697323e313062fabdebefc964eb97 (diff) | |
download | qemu-95a40c44501b5e3b8d1922ea37f30142981b2b34.zip qemu-95a40c44501b5e3b8d1922ea37f30142981b2b34.tar.gz qemu-95a40c44501b5e3b8d1922ea37f30142981b2b34.tar.bz2 |
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>
Diffstat (limited to 'hw/ide/core.c')
0 files changed, 0 insertions, 0 deletions