fsck.c: Fix a double free bug.
[paraslash.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 5f95b74..391516f 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -571,6 +571,7 @@ static int check_disk_storage_columns(struct osl_table *t)
 out_close_hash_tree:
        osl_close_table(hash_tree_table, 0);
        free(hashes);
+       hashes = NULL;
 out:
        clear_rbtrees(t); /* TODO why are we doing that here? Seems odd */
        return ret;