Skip to content
Snippets Groups Projects
Commit b3137100 authored by Yonggang Luo's avatar Yonggang Luo Committed by Alex Bennée
Browse files

plugins: Fixes a issue when dlsym failed, the handle not closed


Signed-off-by: default avatarYonggang Luo <luoyonggang@gmail.com>
Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201001163429.1348-2-luoyonggang@gmail.com>
Message-Id: <20201007160038.26953-20-alex.bennee@linaro.org>
parent 98d3a724
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment