rc = exfat_opendir(ef, parent, &it);
if (rc != 0)
{
- exfat_put_node(parent);
+ exfat_put_node(ef, parent);
exfat_error("failed to open directory `%s'", path);
return;
}
else
files_count++;
nodeck(ef, node);
- exfat_put_node(node);
+ exfat_put_node(ef, node);
}
- exfat_closedir(&it);
- exfat_put_node(parent);
+ exfat_closedir(ef, &it);
+ exfat_put_node(ef, parent);
}
static void fsck(struct exfat* ef)