fs: Call RELEASE_SEARCH to free resource in pseudorename
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user