[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/22] plugins: Fixes a issue when dlsym failed, the handle not cl
From: |
Alex Bennée |
Subject: |
[PULL 19/22] plugins: Fixes a issue when dlsym failed, the handle not closed |
Date: |
Fri, 9 Oct 2020 17:31:44 +0100 |
From: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201001163429.1348-2-luoyonggang@gmail.com>
Message-Id: <20201007160038.26953-20-alex.bennee@linaro.org>
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
- [PULL 14/22] contrib/gitdm: Add Nir Soffer to Red Hat domain, (continued)
- [PULL 14/22] contrib/gitdm: Add Nir Soffer to Red Hat domain, Alex Bennée, 2020/10/09
- [PULL 12/22] contrib/gitdm: Add Nuvia to the domain map, Alex Bennée, 2020/10/09
- [PULL 22/22] tests/acceptance: disable machine_rx_gdbsim on GitLab, Alex Bennée, 2020/10/09
- [PULL 11/22] contrib/gitdm: Add Google to the domain map, Alex Bennée, 2020/10/09
- [PULL 13/22] contrib/gitdm: Add Qualcomm to the domain map, Alex Bennée, 2020/10/09
- [PULL 17/22] contrib/gitdm: Add Yandex to the domain map, Alex Bennée, 2020/10/09
- [PULL 15/22] contrib/gitdm: Add SUSE to the domain map, Alex Bennée, 2020/10/09
- [PULL 21/22] cirrus: use V=1 when running tests on FreeBSD and macOS, Alex Bennée, 2020/10/09
- [PULL 20/22] plugin: Fixes compiling errors on msys2/mingw, Alex Bennée, 2020/10/09
- [PULL 18/22] .mailmap: Fix more contributor entries, Alex Bennée, 2020/10/09
- [PULL 19/22] plugins: Fixes a issue when dlsym failed, the handle not closed,
Alex Bennée <=
- [PULL 16/22] contrib/gitdm: Add Yadro to the domain map, Alex Bennée, 2020/10/09
- Re: [PULL 00/22] acceptance regressions, testing, gitdm, plugins, Peter Maydell, 2020/10/11