summaryrefslogtreecommitdiff
path: root/hw/scsi/mptconfig.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-02-16 08:35:49 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-02-16 16:41:17 +0100
commitb44bbeb44bbacd1f47473d5f70468ae2141847cf (patch)
tree9459c27d628b370e98576fd7261fc3c9e5769309 /hw/scsi/mptconfig.c
parent4987783400667147ada01a5bdcce53f11b822888 (diff)
downloadqemu-b44bbeb44bbacd1f47473d5f70468ae2141847cf.tar.gz
qemu-b44bbeb44bbacd1f47473d5f70468ae2141847cf.tar.bz2
qemu-b44bbeb44bbacd1f47473d5f70468ae2141847cf.zip
mptsas: add missing va_end
Reported by Coverity. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/mptconfig.c')
-rw-r--r--hw/scsi/mptconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi/mptconfig.c b/hw/scsi/mptconfig.c
index d04982513a..707185469e 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);
}