diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 2b9bfe3949afef826cb0abdf12ca99c25f6f723f..d7be7319c3612c6b16ca1e8f09fd781b769dfd82 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -3520,7 +3520,8 @@ int qemuProcessStart(virConnectPtr conn, hookData.conn = conn; hookData.vm = vm; hookData.driver = driver; - hookData.cfg = virObjectRef(cfg); + /* We don't increase cfg's reference counter here. */ + hookData.cfg = cfg; VIR_DEBUG("Beginning VM startup process");