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.
This commit is contained in:
Joel Sherrill
2007-04-16 19:05:42 +00:00
parent 40e572f85a
commit 19c738467e
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
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.
2007-04-12 Joel Sherrill <joel@OARcorp.com>
* itron/src/rsm_tsk.c: Correct error returned.

View File

@@ -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 );
}