diff options
author | Yonggang Luo | 2020-10-07 18:00:35 +0200 |
---|---|---|
committer | Alex Bennée | 2020-10-09 18:27:55 +0200 |
commit | b31371004f46e46235dff1f4f854bbd5ba774879 (patch) | |
tree | 36a127d6fd82a7b5454890a4863b6a1161b83cc1 /plugins | |
parent | .mailmap: Fix more contributor entries (diff) | |
download | qemu-b31371004f46e46235dff1f4f854bbd5ba774879.tar.gz qemu-b31371004f46e46235dff1f4f854bbd5ba774879.tar.xz qemu-b31371004f46e46235dff1f4f854bbd5ba774879.zip |
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>
Diffstat (limited to 'plugins')
-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; |