summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--c/src/exec/libcsupport/src/close.c1
-rw-r--r--c/src/exec/libcsupport/src/open.c2
-rw-r--r--c/src/lib/ChangeLog5
-rw-r--r--c/src/lib/libc/close.c1
-rw-r--r--c/src/lib/libc/open.c2
-rw-r--r--cpukit/libcsupport/src/close.c1
-rw-r--r--cpukit/libcsupport/src/open.c2
7 files changed, 8 insertions, 6 deletions
diff --git a/c/src/exec/libcsupport/src/close.c b/c/src/exec/libcsupport/src/close.c
index 00fa8872a2..a9bfc289ac 100644
--- a/c/src/exec/libcsupport/src/close.c
+++ b/c/src/exec/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/c/src/exec/libcsupport/src/open.c b/c/src/exec/libcsupport/src/open.c
index bfb4117e73..4bb2ce17ae 100644
--- a/c/src/exec/libcsupport/src/open.c
+++ b/c/src/exec/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;
}
diff --git a/c/src/lib/ChangeLog b/c/src/lib/ChangeLog
index 1fe4f17cb3..73d7179e02 100644
--- a/c/src/lib/ChangeLog
+++ b/c/src/lib/ChangeLog
@@ -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>
* These changes were discussed and reviewed by many people but the
diff --git a/c/src/lib/libc/close.c b/c/src/lib/libc/close.c
index 00fa8872a2..a9bfc289ac 100644
--- a/c/src/lib/libc/close.c
+++ b/c/src/lib/libc/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/c/src/lib/libc/open.c b/c/src/lib/libc/open.c
index bfb4117e73..4bb2ce17ae 100644
--- a/c/src/lib/libc/open.c
+++ b/c/src/lib/libc/open.c
@@ -187,8 +187,6 @@ done:
set_errno_and_return_minus_one( rc );
}
- rtems_filesystem_freenode( &loc );
-
return iop - rtems_libio_iops;
}
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;
}