diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index df0ac722a8..114e8851d9 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4222,7 +4222,7 @@ retry: } if (graphics->data.vnc.websocket) { ignore_value(virPortAllocatorRelease(driver->webSocketPorts, - graphics->data.vnc.port)); + graphics->data.vnc.websocket)); } } if (graphics->type == VIR_DOMAIN_GRAPHICS_TYPE_SPICE &&