diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2020-10-07 17:00:35 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2020-10-09 17:27:55 +0100 |
commit | b31371004f46e46235dff1f4f854bbd5ba774879 (patch) | |
tree | 36a127d6fd82a7b5454890a4863b6a1161b83cc1 | |
parent | 98d3a724694e29787d391a7215327c96788f9939 (diff) |
plugins: Fixes a issue when dlsym failed, the handle not closed
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>
-rw-r--r-- | plugins/loader.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |