diff options
author | des <des@FreeBSD.org> | 2004-08-26 06:25:28 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-08-26 06:25:28 +0000 |
commit | cc42042e49eb1af06c02974d5b90c2cdc1c0c5a0 (patch) | |
tree | f7a1f94776cc9ad79cb1d91bc72e7a194652101c /lib | |
parent | a4134eed553a044a8a41cbc8fd0c27a0fe9b0424 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 1 | ||||
-rw-r--r-- | lib/libc/stdio/vfwprintf.c | 1 |
2 files changed, 2 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); diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index 35d2804..d93e507 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -1232,6 +1232,7 @@ number: if ((dprec = prec) >= 0) } done: error: + va_end(orgap); if (convbuf != NULL) free(convbuf); if (__sferror(fp)) |