mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2002-03-15 Ulrich Drepper <drepper@redhat.com> * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate buffers if _IO_file_attach failed. * libio/fileops.c (_IO_file_open): Close file descriptor if _IO_SEEKOFF call failed. * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
This commit is contained in:
@ -132,6 +132,7 @@ _IO_new_fdopen (fd, mode)
|
||||
#endif
|
||||
if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
|
||||
{
|
||||
INTUSE(_IO_setb) (&new_f->fp, NULL, NULL, 0);
|
||||
INTUSE(_IO_un_link) (&new_f->fp);
|
||||
free (new_f);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user