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:04:47 +00:00
parent 8da9f609af
commit 029c1fd8e3
2 changed files with 10 additions and 0 deletions
+6
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-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/utils.c: Use uintptr_t instead of unsigned long.
+4
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 );
}