mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-23 06:00:49 +00:00
hmp: Missing handle_errors
hmp_info_memdev && hmp_info_memory_devices were missing hmp_handle_error calls. Add them. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20170817104216.29150-2-dgilbert@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
d147f7e815
commit
40c71f6361
2
hmp.c
2
hmp.c
@ -2394,6 +2394,7 @@ void hmp_info_memdev(Monitor *mon, const QDict *qdict)
|
|||||||
monitor_printf(mon, "\n");
|
monitor_printf(mon, "\n");
|
||||||
|
|
||||||
qapi_free_MemdevList(memdev_list);
|
qapi_free_MemdevList(memdev_list);
|
||||||
|
hmp_handle_error(mon, &err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void hmp_info_memory_devices(Monitor *mon, const QDict *qdict)
|
void hmp_info_memory_devices(Monitor *mon, const QDict *qdict)
|
||||||
@ -2432,6 +2433,7 @@ void hmp_info_memory_devices(Monitor *mon, const QDict *qdict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
qapi_free_MemoryDeviceInfoList(info_list);
|
qapi_free_MemoryDeviceInfoList(info_list);
|
||||||
|
hmp_handle_error(mon, &err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void hmp_info_iothreads(Monitor *mon, const QDict *qdict)
|
void hmp_info_iothreads(Monitor *mon, const QDict *qdict)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user