summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-19 17:37:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-19 17:37:24 +0000
commit0c40eb306447decb934569f5df76742f104fcd4c (patch)
tree02d221ac6e33a50ec510dd902ead850d87e57ecf /cpukit
parentdfe5a4e353b4f34150b755a7ea419c52f749aaaa (diff)
downloadrtems-0c40eb306447decb934569f5df76742f104fcd4c.tar.bz2
2001-10-18 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/open.c, libc/close.c: Moved freenode from open to close.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/close.c1
-rw-r--r--cpukit/libcsupport/src/open.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c
index 00fa8872a2..a9bfc289ac 100644
--- a/cpukit/libcsupport/src/close.c
+++ b/cpukit/libcsupport/src/close.c
@@ -32,6 +32,7 @@ int close(
if ( iop->handlers->close_h )
rc = (*iop->handlers->close_h)( iop );
+ rtems_filesystem_freenode( &iop->pathinfo );
rtems_libio_free( iop );
return rc;
diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c
index bfb4117e73..4bb2ce17ae 100644
--- a/cpukit/libcsupport/src/open.c
+++ b/cpukit/libcsupport/src/open.c
@@ -187,8 +187,6 @@ done:
set_errno_and_return_minus_one( rc );
}
- rtems_filesystem_freenode( &loc );
-
return iop - rtems_libio_iops;
}