aboutsummaryrefslogtreecommitdiffstats
path: root/libexfat/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexfat/mount.c')
-rw-r--r--libexfat/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexfat/mount.c b/libexfat/mount.c
index f1fb01a..0d6ce9e 100644
--- a/libexfat/mount.c
+++ b/libexfat/mount.c
@@ -359,7 +359,8 @@ static void finalize_super_block(struct exfat* ef)
void exfat_unmount(struct exfat* ef)
{
- exfat_flush(ef); /* ignore return code */
+ exfat_flush_nodes(ef); /* ignore return code */
+ exfat_flush(ef); /* ignore return code */
exfat_put_node(ef, ef->root);
exfat_reset_cache(ef);
free(ef->root);