From 325c02deae7a4b920bc0848aec1ea040390cd3c3 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 13 May 2008 18:52:26 +0000 Subject: Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD. --- lib/libc/stdio/vfprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio/vfprintf.c') 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; -- cgit v1.2.3