Skip to content

Commit

Permalink
* libio/genops.c (_IO_default_finish): Call _IO_lock_fini
Browse files Browse the repository at this point in the history
	after _IO_un_link, not before it.
  • Loading branch information
Ulrich Drepper committed Apr 16, 2007
1 parent d40e67f commit 993a5d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions libio/genops.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 993a5d6

Please sign in to comment.