aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-11 17:57:46 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-11 17:57:46 +0000
commitbd7d6b406d28d0eb334b10e7cdfe952698fa2032 (patch)
tree7cb7a4e17e1910c6e196171c577036dc2dd7b199 /libio/memstream.c
parent* libio/genops.c (_IO_unbuffer_write): Give concurrently running (diff)
downloadglibc-bd7d6b406d28d0eb334b10e7cdfe952698fa2032.tar.gz
glibc-bd7d6b406d28d0eb334b10e7cdfe952698fa2032.tar.bz2
glibc-bd7d6b406d28d0eb334b10e7cdfe952698fa2032.zip
* include/sys/stat.h: Add libc_hidden_proto for __fxstatat64.
* sysdeps/unix/sysv/linux/fxstatat64.c: Add libc_hidden_def for __fxstatat64. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Add __GI___fxstatat64 alias. * libio/memstream.c (_IO_mem_finish): Fix potential memory leak of realloc fails. * include/sched.h: Add libc_hidden_proto for __sched_yield.
Diffstat (limited to 'libio/memstream.c')
-rw-r--r--libio/memstream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libio/memstream.c b/libio/memstream.c
index 4cc9ab2dfc..d8e8896144 100644
--- a/libio/memstream.c
+++ b/libio/memstream.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-97,99,2000,2002,2003,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1995-97,99,2000,2002-2004,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -140,9 +140,9 @@ _IO_mem_finish (fp, dummy)
{
(*mp->bufloc)[fp->_IO_write_ptr - fp->_IO_write_base] = '\0';
*mp->sizeloc = fp->_IO_write_ptr - fp->_IO_write_base;
- }
- fp->_IO_buf_base = NULL;
+ fp->_IO_buf_base = NULL;
+ }
- INTUSE(_IO_default_finish) (fp, 0);
+ _IO_str_finish (fp, 0);
}