IMFS: Resource leak

Free fs_info in case root_node is NULL.
This commit is contained in:
Gedare Bloom
2013-09-05 11:53:39 -04:00
parent d157a4fd4d
commit a6d3525604

View File

@@ -90,6 +90,7 @@ int IMFS_initialize_support(
mt_entry->mt_fs_root->location.node_access = root_node;
IMFS_Set_handlers( &mt_entry->mt_fs_root->location );
} else {
free(fs_info);
errno = ENOMEM;
rv = -1;
}