diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-07-22 15:26:40 +0900 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 12:13:27 +0100 |
commit | e93d1e99830481e9a5c758672d2b8ea318f07080 (patch) | |
tree | baf3365145d71343af371cb044325c3ea6a6dfce | |
parent | bb541a7068d2eee51a9abbe2dedcdf27298b1872 (diff) | |
download | qemu-e93d1e99830481e9a5c758672d2b8ea318f07080.zip qemu-e93d1e99830481e9a5c758672d2b8ea318f07080.tar.gz qemu-e93d1e99830481e9a5c758672d2b8ea318f07080.tar.bz2 |
vl: Free machine list
Free machine list and make LeakSanitizer happy.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230722062641.18505-1-akihiko.odaki@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r-- | system/vl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/vl.c b/system/vl.c index 3fb5692..ff76eb0 100644 --- a/system/vl.c +++ b/system/vl.c @@ -1529,7 +1529,8 @@ static gint machine_class_cmp(gconstpointer a, gconstpointer b) static void machine_help_func(const QDict *qdict) { - GSList *machines, *el; + g_autoptr(GSList) machines = NULL; + GSList *el; const char *type = qdict_get_try_str(qdict, "type"); machines = object_class_get_list(TYPE_MACHINE, false); |