This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch pr54 in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit eaf62370d5c0759b19b1a835919609924e6cf469 Author: Alin Jerpelea <[email protected]> AuthorDate: Wed Jul 4 23:20:15 2018 +0900 fs: smartfs: Memory leak fix --- fs/smartfs/smartfs_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c index dea4e42..971cf15 100644 --- a/fs/smartfs/smartfs_utils.c +++ b/fs/smartfs/smartfs_utils.c @@ -292,12 +292,12 @@ int smartfs_mount(struct smartfs_mountpt_s *fs, bool writeable) g_mounthead = fs; #endif -#endif /* CONFIG_SMARTFS_MULTI_ROOT_DIRS */ - fs->fs_rwbuffer = (char *) kmm_malloc(fs->fs_llformat.availbytes); fs->fs_workbuffer = (char *) kmm_malloc(256); fs->fs_rootsector = SMARTFS_ROOT_DIR_SECTOR; +#endif /* CONFIG_SMARTFS_MULTI_ROOT_DIRS */ + /* We did it! */ fs->fs_mounted = TRUE;
