forked from Imagelibrary/rtems
2001-10-18 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/open.c, libc/close.c: Moved freenode from open to close.
This commit is contained in:
@@ -32,6 +32,7 @@ int close(
|
|||||||
if ( iop->handlers->close_h )
|
if ( iop->handlers->close_h )
|
||||||
rc = (*iop->handlers->close_h)( iop );
|
rc = (*iop->handlers->close_h)( iop );
|
||||||
|
|
||||||
|
rtems_filesystem_freenode( &iop->pathinfo );
|
||||||
rtems_libio_free( iop );
|
rtems_libio_free( iop );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
@@ -187,8 +187,6 @@ done:
|
|||||||
set_errno_and_return_minus_one( rc );
|
set_errno_and_return_minus_one( rc );
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_filesystem_freenode( &loc );
|
|
||||||
|
|
||||||
return iop - rtems_libio_iops;
|
return iop - rtems_libio_iops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2001-10-18 Till Straumann <strauman@SLAC.Stanford.EDU>
|
||||||
|
|
||||||
|
* libc/open.c, libc/close.c: Moved freenode from open to
|
||||||
|
close.
|
||||||
|
|
||||||
2001-10-17 Till Straumann <strauman@SLAC.Stanford.EDU>
|
2001-10-17 Till Straumann <strauman@SLAC.Stanford.EDU>
|
||||||
|
|
||||||
* These changes were discussed and reviewed by many people but the
|
* These changes were discussed and reviewed by many people but the
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ int close(
|
|||||||
if ( iop->handlers->close_h )
|
if ( iop->handlers->close_h )
|
||||||
rc = (*iop->handlers->close_h)( iop );
|
rc = (*iop->handlers->close_h)( iop );
|
||||||
|
|
||||||
|
rtems_filesystem_freenode( &iop->pathinfo );
|
||||||
rtems_libio_free( iop );
|
rtems_libio_free( iop );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
@@ -187,8 +187,6 @@ done:
|
|||||||
set_errno_and_return_minus_one( rc );
|
set_errno_and_return_minus_one( rc );
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_filesystem_freenode( &loc );
|
|
||||||
|
|
||||||
return iop - rtems_libio_iops;
|
return iop - rtems_libio_iops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ int close(
|
|||||||
if ( iop->handlers->close_h )
|
if ( iop->handlers->close_h )
|
||||||
rc = (*iop->handlers->close_h)( iop );
|
rc = (*iop->handlers->close_h)( iop );
|
||||||
|
|
||||||
|
rtems_filesystem_freenode( &iop->pathinfo );
|
||||||
rtems_libio_free( iop );
|
rtems_libio_free( iop );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
@@ -187,8 +187,6 @@ done:
|
|||||||
set_errno_and_return_minus_one( rc );
|
set_errno_and_return_minus_one( rc );
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_filesystem_freenode( &loc );
|
|
||||||
|
|
||||||
return iop - rtems_libio_iops;
|
return iop - rtems_libio_iops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user