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

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent e3194229a5
commit d9e11a083b
  1. 2
      source/fs/mufs/dir.c

@ -128,7 +128,9 @@ struct mufs_tree *resolve_path(struct mufs *fs, const char *path)
if (ret < 0) if (ret < 0)
goto err_closedir; goto err_closedir;
}
if (dir) {
tree = dir->tree; tree = dir->tree;
dir->tree = NULL; dir->tree = NULL;
} }

Loading…
Cancel
Save