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>
This commit is contained in:
parent
bb541a7068
commit
e93d1e9983
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user