diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-04-16 23:29:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-04-16 23:29:46 +0000 |
commit | 993a5d6645af0a0d0de4c17ba1172449c51372ab (patch) | |
tree | 5fb73377782284e9e3c92314587d88495a4bab9b /libio/genops.c | |
parent | d40e67f54ca528c1435419c3bf1868ba288308df (diff) | |
download | glibc-993a5d6645af0a0d0de4c17ba1172449c51372ab.tar.gz glibc-993a5d6645af0a0d0de4c17ba1172449c51372ab.tar.xz glibc-993a5d6645af0a0d0de4c17ba1172449c51372ab.zip |
* libio/genops.c (_IO_default_finish): Call _IO_lock_fini
after _IO_un_link, not before it.
Diffstat (limited to 'libio/genops.c')
-rw-r--r-- | libio/genops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/genops.c b/libio/genops.c index 8d62da7781..3f8d71a50f 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006 +/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -696,12 +696,12 @@ _IO_default_finish (fp, dummy) fp->_IO_save_base = NULL; } + INTUSE(_IO_un_link) ((struct _IO_FILE_plus *) fp); + #ifdef _IO_MTSAFE_IO if (fp->_lock != NULL) _IO_lock_fini (*fp->_lock); #endif - - INTUSE(_IO_un_link) ((struct _IO_FILE_plus *) fp); } INTDEF(_IO_default_finish) |