diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-16 08:35:49 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:28 -0600 |
commit | a14c9c45dc7b7cacca830de980365c08ab954ec5 (patch) | |
tree | 04af410a471e29a577b39506a250615092cd7ffc /hw/scsi | |
parent | 4d75fe4301a65b63659af90691c99d4d444e7753 (diff) | |
download | hqemu-a14c9c45dc7b7cacca830de980365c08ab954ec5.zip hqemu-a14c9c45dc7b7cacca830de980365c08ab954ec5.tar.gz |
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')
-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); } |