]> sourceware.org Git - glibc.git/commitdiff
* libio/genops.c (_IO_default_finish): Call _IO_lock_fini
authorUlrich Drepper <drepper@redhat.com>
Mon, 16 Apr 2007 23:29:46 +0000 (23:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 16 Apr 2007 23:29:46 +0000 (23:29 +0000)
after _IO_un_link, not before it.

ChangeLog
libio/genops.c

index 2d809063f4def7f271966a2b36ecb4844d3b8f2a..ae48deffe334a6bcaf9fcc98bb9b588f40ecb7e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
 
+       * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
+       after _IO_un_link, not before it.
+
        * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
        special case handling when wcp == wstartp + 1.  Fix a comment typo.
        * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
index 8d62da7781be580ee7699f6026072c3dc5de1cae..3f8d71a50f327af8624f98dc780b996b143a79be 100644 (file)
@@ -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)
 
This page took 0.046098 seconds and 5 git commands to generate.