diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/scsi/mptconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi/mptconfig.c b/hw/scsi/mptconfig.c index d049825..7071854 100644 --- a/hw/scsi/mptconfig.c +++ b/hw/scsi/mptconfig.c @@ -123,6 +123,7 @@ static size_t vpack(uint8_t **p_data, const char *fmt, va_list ap1) va_copy(ap2, ap1); size = vfill(NULL, 0, fmt, ap2); *p_data = data = g_malloc(size); + va_end(ap2); } return vfill(data, size, fmt, ap1); } |