commit | b44bbeb44bbacd1f47473d5f70468ae2141847cf | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue Feb 16 08:35:49 2016 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Feb 16 16:41:17 2016 +0100 |
tree | 9459c27d628b370e98576fd7261fc3c9e5769309 | |
parent | 4987783400667147ada01a5bdcce53f11b822888 [diff] [blame] |
mptsas: add missing va_end Reported by Coverity. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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 @@ 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); }