summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-08-26 06:25:28 +0000
committerdes <des@FreeBSD.org>2004-08-26 06:25:28 +0000
commitcc42042e49eb1af06c02974d5b90c2cdc1c0c5a0 (patch)
treef7a1f94776cc9ad79cb1d91bc72e7a194652101c /lib/libc/stdio/vfprintf.c
parenta4134eed553a044a8a41cbc8fd0c27a0fe9b0424 (diff)
downloadFreeBSD-src-cc42042e49eb1af06c02974d5b90c2cdc1c0c5a0.zip
FreeBSD-src-cc42042e49eb1af06c02974d5b90c2cdc1c0c5a0.tar.gz
Don't forget to va_end() the va_list we get from va_copy().
Submitted by: Sean McNeil <sean@mcneil.com> MFC after: 3 days
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index e430129..ff688e7 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -1233,6 +1233,7 @@ number: if ((dprec = prec) >= 0)
done:
FLUSH();
error:
+ va_end(orgap);
#ifndef NO_FLOATING_POINT
if (dtoaresult != NULL)
freedtoa(dtoaresult);
OpenPOWER on IntegriCloud