diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-16 08:35:49 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-16 16:41:17 +0100 |
| commit | b44bbeb44bbacd1f47473d5f70468ae2141847cf (patch) | |
| tree | 9459c27d628b370e98576fd7261fc3c9e5769309 /hw/scsi/mptconfig.c | |
| parent | 4987783400667147ada01a5bdcce53f11b822888 (diff) | |
| download | focaccia-qemu-b44bbeb44bbacd1f47473d5f70468ae2141847cf.tar.gz focaccia-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.c | 1 |
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); } |