summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/freopen.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-06-17 20:40:33 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-06-17 20:40:33 +0000
commitbe7004e483155fec9dc1404ce22b9bf05c193127 (patch)
tree324b7c12f3d62c06a7c4873e563b9c5491af99e4 /lib/libc/stdio/freopen.c
parentbca5a28b4734025b47828589f2a0704cc7e1d9e9 (diff)
next citrus step.
reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
Diffstat (limited to 'lib/libc/stdio/freopen.c')
-rw-r--r--lib/libc/stdio/freopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c
index 0131001bea6..4667332b2d6 100644
--- a/lib/libc/stdio/freopen.c
+++ b/lib/libc/stdio/freopen.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: freopen.c,v 1.7 2005/04/30 09:25:17 espie Exp $";
+static char rcsid[] = "$OpenBSD: freopen.c,v 1.8 2005/06/17 20:40:32 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -116,6 +116,7 @@ freopen(const char *file, const char *mode, FILE *fp)
if (HASUB(fp))
FREEUB(fp);
_UB(fp)._size = 0;
+ WCIO_FREE(fp);
if (HASLB(fp))
FREELB(fp);
fp->_lb._size = 0;