mufs: free tree object if owned by struct mufs_dir in mufs_closedir()
This commit is contained in:
parent
9f05686a1f
commit
e3194229a5
1 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,9 @@ void mufs_closedir(struct mufs_dir *dir)
|
|||
if (!dir)
|
||||
return;
|
||||
|
||||
if (dir->tree && dir->tree != &dir->fs->root)
|
||||
free(dir->tree);
|
||||
|
||||
free(dir);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue