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 663c9adaee483f52e50ce9b10b6e91bd5cc7f882 Author: Alin Jerpelea <[email protected]> AuthorDate: Thu Jun 15 11:40:31 2017 +0900 fs: smartfs: Memory leak fix --- fs/smartfs/smartfs_smart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index 3e7d38c..24503ec 100644 --- a/fs/smartfs/smartfs_smart.c +++ b/fs/smartfs/smartfs_smart.c @@ -383,6 +383,9 @@ errout_with_buffer: sf->entry.name = NULL; } +#ifdef CONFIG_SMARTFS_USE_SECTOR_BUFFER + kmm_free(sf->buffer); +#endif /* CONFIG_SMARTFS_USE_SECTOR_BUFFER */ kmm_free(sf); errout_with_semaphore:
