mufs: properly free the tree object in mufs_rename()

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent 7be03f4a60
commit 3649151a9f
  1. 3
      source/fs/mufs/path.c

@ -194,7 +194,7 @@ int mufs_rename(struct mufs *fs, const char *old, const char *new)
free(path);
if (ret < 0)
return -1;
goto err_del_subtree;
type = stat.type;
@ -204,6 +204,7 @@ int mufs_rename(struct mufs *fs, const char *old, const char *new)
if (mufs_rmpath(fs, old) < 0)
goto err_del_subtree;
mufs_del_tree(subtree);
return 0;
err_del_subtree:

Loading…
Cancel
Save