diff --git a/tools/virsh-console.c b/tools/virsh-console.c index 826a4afcb200f3f1ac96de894c0b0ddced13762e..e16f841e5731efbefe8ec55368fabf7e5abe641c 100644 --- a/tools/virsh-console.c +++ b/tools/virsh-console.c @@ -367,7 +367,7 @@ virConsoleNew(void) if (virConsoleInitialize() < 0) return NULL; - if (!(con = virObjectNew(virConsoleClass))) + if (!(con = virObjectLockableNew(virConsoleClass))) return NULL; if (virCondInit(&con->cond) < 0) {