mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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>
|
2007-04-12 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* itron/src/rsm_tsk.c: Correct error returned.
|
* itron/src/rsm_tsk.c: Correct error returned.
|
||||||
|
|||||||
@@ -71,6 +71,10 @@ int IMFS_rmnod(
|
|||||||
* Free memory associated with a memory file.
|
* 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 );
|
free( the_jnode );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user