forked from Imagelibrary/rtems
IMFS: Fix reference count for debug enabled
This commit is contained in:
@@ -130,10 +130,10 @@ void IMFS_node_free( const rtems_filesystem_location_info_t *loc )
|
||||
{
|
||||
IMFS_jnode_t *node = loc->node_access;
|
||||
|
||||
if ( node->reference_count == 1 ) {
|
||||
--node->reference_count;
|
||||
|
||||
if ( node->reference_count == 0 ) {
|
||||
IMFS_node_destroy( node );
|
||||
} else {
|
||||
--node->reference_count;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user