summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/xfer.c2
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 )