diff --git a/hw/sysbus.c b/hw/sysbus.c index 4fab5a41b25e72adee7315107e617ebb1d4d8486..fd2fc6a51df15568a8d2ac703d1a8c8757956a31 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -198,6 +198,7 @@ DeviceState *sysbus_create_varargs(const char *name, sysbus_connect_irq(s, n, irq); n++; } + va_end(va); return dev; } @@ -229,6 +230,7 @@ DeviceState *sysbus_try_create_varargs(const char *name, sysbus_connect_irq(s, n, irq); n++; } + va_end(va); return dev; }