From: Akihiko Odaki Date: Sat, 22 Jul 2023 06:26:40 +0000 (+0900) Subject: vl: Free machine list X-Git-Tag: v8.2.0-rc0~19^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e93d1e99830481e9a5c758672d2b8ea318f07080;p=thirdparty%2Fqemu.git vl: Free machine list Free machine list and make LeakSanitizer happy. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20230722062641.18505-1-akihiko.odaki@daynix.com> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/system/vl.c b/system/vl.c index 3fb569254a0..ff76eb0d07c 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);