diff options
Diffstat (limited to 'libio/wgenops.c')
-rw-r--r-- | libio/wgenops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/wgenops.c b/libio/wgenops.c index bfcef9e9e1..f021e8a3a2 100644 --- a/libio/wgenops.c +++ b/libio/wgenops.c @@ -210,7 +210,8 @@ _IO_wdefault_finish (fp, dummy) } #ifdef _IO_MTSAFE_IO - _IO_lock_fini (*fp->_lock); + if (fp->_lock != NULL) + _IO_lock_fini (*fp->_lock); #endif _IO_un_link ((struct _IO_FILE_plus *) fp); |