mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
fs: Call RELEASE_SEARCH to free resource in pseudorename
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Brennan Ashton
parent
59fbd35609
commit
1e848e5d8b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user