From 0b0cd93a40c92018a959219e8a2c42eadeae7a79 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 29 Feb 2020 11:15:43 +0100 Subject: imfs: Remove IMFS_NODE_FLAG_NAME_ALLOCATED Remove IMFS_NODE_FLAG_NAME_ALLOCATED and instead replace the node control in rename operations. This avoids a special case in the general node destruction which pulled in free(). Update #3894. --- cpukit/libfs/src/imfs/imfs_node.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_node.c') diff --git a/cpukit/libfs/src/imfs/imfs_node.c b/cpukit/libfs/src/imfs/imfs_node.c index 0c296de339..ae087bd58f 100644 --- a/cpukit/libfs/src/imfs/imfs_node.c +++ b/cpukit/libfs/src/imfs/imfs_node.c @@ -107,9 +107,5 @@ IMFS_jnode_t *IMFS_node_remove_default( void IMFS_node_destroy_default( IMFS_jnode_t *node ) { - if ( ( node->flags & IMFS_NODE_FLAG_NAME_ALLOCATED ) != 0 ) { - free( RTEMS_DECONST( char *, node->name ) ); - } - free( node ); } -- cgit v1.2.3