mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
[xfer] Ensure va_end() is called on failure path
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -306,11 +306,11 @@ int xfer_vprintf ( struct interface *intf, const char *format,
|
||||
/* Create temporary string */
|
||||
va_copy ( args_tmp, args );
|
||||
len = vasprintf ( &buf, format, args );
|
||||
va_end ( args_tmp );
|
||||
if ( len < 0 ) {
|
||||
rc = len;
|
||||
goto err_asprintf;
|
||||
}
|
||||
va_end ( args_tmp );
|
||||
|
||||
/* Transmit string */
|
||||
if ( ( rc = xfer_deliver_raw ( intf, buf, len ) ) != 0 )
|
||||
|
||||
Reference in New Issue
Block a user