diff options
| author | Pan Nengyuan <pannengyuan@huawei.com> | 2019-12-20 09:34:10 +0800 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2020-01-08 16:01:18 +0100 |
| commit | 638be47830ec77faf02dad650e4b9d266997067d (patch) | |
| tree | 1de38e69d70d4f5748d219b66d2250ee1d8a9244 /util/module.c | |
| parent | bfffeac8aa3304ec2a8010dd60044da7f3883764 (diff) | |
| download | focaccia-qemu-638be47830ec77faf02dad650e4b9d266997067d.tar.gz focaccia-qemu-638be47830ec77faf02dad650e4b9d266997067d.zip | |
util/module: fix a memory leak
spotted by ASAN Fixes: 81d8ccb1bea4fb9eaaf4c8e30bd4021180a9a39f Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1576805650-16380-1-git-send-email-pannengyuan@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'util/module.c')
| -rw-r--r-- | util/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/module.c b/util/module.c index e9fe3e5422..8c5315a7a3 100644 --- a/util/module.c +++ b/util/module.c @@ -214,6 +214,7 @@ bool module_load_one(const char *prefix, const char *lib_name) if (!success) { g_hash_table_remove(loaded_modules, module_name); + g_free(module_name); } for (i = 0; i < n_dirs; i++) { |