[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 19/22] plugins: Fixes a issue when dlsym failed, the handle n
From: |
Alex Bennée |
Subject: |
[PATCH v1 19/22] plugins: Fixes a issue when dlsym failed, the handle not closed |
Date: |
Wed, 7 Oct 2020 17:00:35 +0100 |
From: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201001163429.1348-2-luoyonggang@gmail.com>
---
plugins/loader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/loader.c b/plugins/loader.c
index 685d334e1a..8ac5dbc20f 100644
--- a/plugins/loader.c
+++ b/plugins/loader.c
@@ -235,6 +235,7 @@ static int plugin_load(struct qemu_plugin_desc *desc, const
qemu_info_t *info)
return rc;
err_symbol:
+ g_module_close(ctx->handle);
err_dlopen:
qemu_vfree(ctx);
return 1;
--
2.20.1
- [PATCH v1 10/22] contrib/gitdm: Add ByteDance to the domain map, (continued)
- [PATCH v1 10/22] contrib/gitdm: Add ByteDance to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 01/22] configure: fix performance regression due to PIC objects, Alex Bennée, 2020/10/07
- [PATCH v1 04/22] cirrus: Fixing and speedup the msys2/mingw CI, Alex Bennée, 2020/10/07
- [PATCH v1 05/22] cirrus: msys2/mingw speed is up, add excluded target back, Alex Bennée, 2020/10/07
- [PATCH v1 07/22] contrib/gitdm: Add more academic domains, Alex Bennée, 2020/10/07
- [PATCH v1 11/22] contrib/gitdm: Add Google to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 09/22] contrib/gitdm: Add Baidu to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 08/22] contrib/gitdm: Add more individual contributors, Alex Bennée, 2020/10/07
- [PATCH v1 12/22] contrib/gitdm: Add Nuvia to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 20/22] plugin: Fixes compiling errors on msys2/mingw, Alex Bennée, 2020/10/07
- [PATCH v1 19/22] plugins: Fixes a issue when dlsym failed, the handle not closed,
Alex Bennée <=
- [PATCH v1 14/22] contrib/gitdm: Add Nir Soffer to Red Hat domain, Alex Bennée, 2020/10/07
- [PATCH v1 16/22] contrib/gitdm: Add Yadro to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 21/22] cirrus: use V=1 when running tests on FreeBSD and macOS, Alex Bennée, 2020/10/07
- [PATCH v1 13/22] contrib/gitdm: Add Qualcomm to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 17/22] contrib/gitdm: Add Yandex to the domain map, Alex Bennée, 2020/10/07
- [PATCH v1 22/22] tests/acceptance: disable machine_rx_gdbsim on GitLab, Alex Bennée, 2020/10/07
- [PATCH v1 15/22] contrib/gitdm: Add SUSE to the domain map, Alex Bennée, 2020/10/07