diff options
author | Michael Brown | 2017-03-21 12:38:39 +0100 |
---|---|---|
committer | Michael Brown | 2017-03-21 12:38:39 +0100 |
commit | 91372d6dab27b3471f89bbef20534fb0905a3a1a (patch) | |
tree | 7ba64e20ba9513f09591111ae5f0ceda0fc00e54 /src/core | |
parent | [arbel] Avoid potential integer overflow when calculating memory mappings (diff) | |
download | ipxe-91372d6dab27b3471f89bbef20534fb0905a3a1a.tar.gz ipxe-91372d6dab27b3471f89bbef20534fb0905a3a1a.tar.xz ipxe-91372d6dab27b3471f89bbef20534fb0905a3a1a.zip |
[xfer] Ensure va_end() is called on failure path
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/xfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/xfer.c b/src/core/xfer.c index 3a2f174d..0faf3292 100644 --- a/src/core/xfer.c +++ b/src/core/xfer.c @@ -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 ) |