summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/link.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-17 17:57:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-17 17:57:42 +0000
commitefb5450a87d50c53584d361c92d5928098233f58 (patch)
tree8068a8a16853a494ec4b565475d4d0f015872b2b /cpukit/libcsupport/src/link.c
parent2001-10-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-efb5450a87d50c53584d361c92d5928098233f58.tar.bz2
2001-10-17 Till Straumann <strauman@SLAC.Stanford.EDU>
* These changes were discussed and reviewed by many people but the primary people were Jennifer Averett <jennifer@OARcorp.com> and Eugeny Mints <jack@oktet.ru>. * libc/utime.c: Add missing call to rtems_filesystem_freenode() at verification that utime is supported by the filesystem. * libc/link.c: Remove calls to freenode when the node was not successfully allocated. * libc/unmount.c: In the method file_systems_below_this_mountpoint() added calls to correctly free fs_root_loc when a failure occurs. * libc/open.c: Add freenode calls upon failure. * libc/open.c, lib/libc/close.c: (PENDING -- NOT INCLUDED THIS TIMER) Modifications the move the freenode from open() to close() (also part of this patch) are pending further discussion.
Diffstat (limited to 'cpukit/libcsupport/src/link.c')
-rw-r--r--cpukit/libcsupport/src/link.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c
index 2dd4c5a55e..0797600849 100644
--- a/cpukit/libcsupport/src/link.c
+++ b/cpukit/libcsupport/src/link.c
@@ -48,14 +48,12 @@ int link(
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
- rtems_filesystem_freenode( &parent_loc );
set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
if ( result != 0 ) {
rtems_filesystem_freenode( &existing_loc );
- rtems_filesystem_freenode( &parent_loc );
set_errno_and_return_minus_one( result );
}