IMFS: Fix reference count for debug enabled

This commit is contained in:
Sebastian Huber
2013-06-18 14:14:43 +02:00
parent f97f46ce75
commit 9165a5b07d

View File

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