This is an automated email from the ASF dual-hosted git repository. btashton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 1e848e5d8ba41ea55144469796b60eed6037a25d Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Wed Sep 16 02:54:44 2020 +0800 fs: Call RELEASE_SEARCH to free resource in pseudorename Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- fs/vfs/fs_rename.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/vfs/fs_rename.c b/fs/vfs/fs_rename.c index bc8f9cb..cabc8ba 100644 --- a/fs/vfs/fs_rename.c +++ b/fs/vfs/fs_rename.c @@ -173,6 +173,7 @@ next_subdir: * over again. A nasty goto is used because I am lazy. */ + RELEASE_SEARCH(&newdesc); goto next_subdir; } else @@ -265,6 +266,8 @@ errout_with_sem: inode_semgive(); errout: + RELEASE_SEARCH(&newdesc); + if (subdir != NULL) { kmm_free(subdir);