mufs: only claim ownership of the tree object as the final step in resolve_path()

This commit is contained in:
S.J.R. van Schaik 2017-06-12 13:42:16 +02:00
parent e3194229a5
commit d9e11a083b

View file

@ -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;
}