diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-16 19:04:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-16 19:04:47 +0000 |
commit | 029c1fd8e306a3374882142e3ccc4a75934b4c28 (patch) | |
tree | 6fa6e50a4fd0541f31df96b9038bb0f02697c781 /cpukit/libfs | |
parent | 2007-04-16 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-029c1fd8e306a3374882142e3ccc4a75934b4c28.tar.bz2 |
2007-04-16 Joel Sherrill <joel@OARcorp.com>
PR 1240/filesystem
* libfs/src/imfs/imfs_rmnod.c: Fix link when removing a symlink. Memory
for filename was not being freed.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_rmnod.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_rmnod.c b/cpukit/libfs/src/imfs/imfs_rmnod.c index d5e32378ad..f37cb6d23c 100644 --- a/cpukit/libfs/src/imfs/imfs_rmnod.c +++ b/cpukit/libfs/src/imfs/imfs_rmnod.c @@ -71,6 +71,10 @@ int IMFS_rmnod( * Free memory associated with a memory file. */ + if ( the_jnode->type == IMFS_SYM_LINK ) { + if ( the_jnode->info.sym_link.name ) + free( the_jnode->info.sym_link.name ); + } free( the_jnode ); } |