mufs: only claim ownership of the tree object as the final step in resolve_path()
This commit is contained in:
parent
e3194229a5
commit
d9e11a083b
1 changed files with 2 additions and 0 deletions
|
@ -128,7 +128,9 @@ struct mufs_tree *resolve_path(struct mufs *fs, const char *path)
|
|||
|
||||
if (ret < 0)
|
||||
goto err_closedir;
|
||||
}
|
||||
|
||||
if (dir) {
|
||||
tree = dir->tree;
|
||||
dir->tree = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue