mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
mptsas: add missing va_end
Reported by Coverity. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4987783400
commit
b44bbeb44b
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue