Pass the driver's xmlopt to allocate the chardev source private data correctly. Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index e9c76188a4..77b7464436 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -5984,7 +5984,7 @@ qemuProcessPrepareDomain(virQEMUDriverPtr driver, goto cleanup; } - if (!(priv->monConfig = virDomainChrSourceDefNew(NULL))) + if (!(priv->monConfig = virDomainChrSourceDefNew(driver->xmlopt))) goto cleanup; VIR_DEBUG("Preparing monitor state"); -- 2.16.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list