diff options
Diffstat (limited to 'cpukit/libcsupport/src/symlink.c')
-rw-r--r-- | cpukit/libcsupport/src/symlink.c | 7 |
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; } |