projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4987783
)
mptsas: add missing va_end
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 16 Feb 2016 07:35:49 +0000
(08:35 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 16 Feb 2016 15:41:17 +0000
(16:41 +0100)
Reported by Coverity.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/mptconfig.c
patch
|
blob
|
history
diff --git
a/hw/scsi/mptconfig.c
b/hw/scsi/mptconfig.c
index d04982513aebf6ff5db205ba08769e34a194cef4..707185469e4ec2093def7bf8249b0a1818947e16 100644
(file)
--- 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);
}