[rtems commit] IMFS: Resource leak
Gedare Bloom
gedare at rtems.org
Thu Sep 5 19:07:52 UTC 2013
Module: rtems
Branch: master
Commit: a6d3525604951f2d9fedf8ffdbd11e01ed3e6a89
Changeset: http://git.rtems.org/rtems/commit/?id=a6d3525604951f2d9fedf8ffdbd11e01ed3e6a89
Author: Gedare Bloom <gedare at rtems.org>
Date: Thu Sep 5 11:53:39 2013 -0400
IMFS: Resource leak
Free fs_info in case root_node is NULL.
---
cpukit/libfs/src/imfs/imfs_initsupp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cpukit/libfs/src/imfs/imfs_initsupp.c b/cpukit/libfs/src/imfs/imfs_initsupp.c
index 1593076..7fe1e16 100644
--- a/cpukit/libfs/src/imfs/imfs_initsupp.c
+++ b/cpukit/libfs/src/imfs/imfs_initsupp.c
@@ -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;
}
More information about the vc
mailing list