summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2008-05-13 18:52:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2008-05-13 18:52:26 +0000
commit325c02deae7a4b920bc0848aec1ea040390cd3c3 (patch)
treeb51eb5c659cdc46cb583e4191ac9c40cc04aa712 /lib/libc/stdio
parentd222a43d256da04a7dbe0a08d82ffbcfe7f17893 (diff)
Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/vfprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index d4e96dd4ab8..ea0082acb37 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfprintf.c,v 1.44 2008/05/05 21:50:45 chl Exp $ */
+/* $OpenBSD: vfprintf.c,v 1.45 2008/05/13 18:52:25 millert Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -813,6 +813,7 @@ number: if ((dprec = prec) >= 0)
done:
FLUSH();
error:
+ va_end(orgap);
if (__sferror(fp))
ret = -1;
goto finish;