qemuMonitorGetPRManagerInfo: virHashNew cannot return NULL

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-05 16:04:59 +02:00
parent 99292979e3
commit df27180d49

View File

@ -4522,8 +4522,7 @@ qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
QEMU_CHECK_MONITOR(mon);
if (!(info = virHashNew(g_free)))
goto cleanup;
info = virHashNew(g_free);
if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
goto cleanup;