hmp: Missing handle_errors
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 17 Aug 2017 10:42:15 +0000 (11:42 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 5 Oct 2017 09:01:03 +0000 (10:01 +0100)
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>
hmp.c

diff --git a/hmp.c b/hmp.c
index ace729d03f6288371c1bde78a042efd5997c0a1d..739d330f4e8ab22a7f4eb3cbb6298be5371a2d8d 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -2394,6 +2394,7 @@ void hmp_info_memdev(Monitor *mon, const QDict *qdict)
     monitor_printf(mon, "\n");
 
     qapi_free_MemdevList(memdev_list);
+    hmp_handle_error(mon, &err);
 }
 
 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);
+    hmp_handle_error(mon, &err);
 }
 
 void hmp_info_iothreads(Monitor *mon, const QDict *qdict)