summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/symlink.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-12 18:44:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-12 18:44:40 +0000
commitd71fcabaa6bc42e82d83060da49abff2b41ee272 (patch)
tree0fe667b13aa15cbab7baaed510a894fa1cb9dd78 /cpukit/libcsupport/src/symlink.c
parentChanged bcopy to strncpy to stick to ANSI/ISO routines. (diff)
downloadrtems-d71fcabaa6bc42e82d83060da49abff2b41ee272.tar.bz2
Added call to freenod to let each filesystem free its own internal
node used to manage file access.
Diffstat (limited to 'cpukit/libcsupport/src/symlink.c')
-rw-r--r--cpukit/libcsupport/src/symlink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/symlink.c b/cpukit/libcsupport/src/symlink.c
index ca9673f51b..b5c6013b07 100644
--- a/cpukit/libcsupport/src/symlink.c
+++ b/cpukit/libcsupport/src/symlink.c
@@ -29,6 +29,11 @@ int symlink(
if ( result != 0 )
return -1;
- return (*loc.ops->symlink)( &loc, actualpath, name_start);
+ result = (*loc.ops->symlink)( &loc, actualpath, name_start);
+
+ if ( loc.ops->freenod )
+ (*loc.ops->freenod)( &loc );
+
+ return result;
}