fsck.c: Fix a double free bug.
authorAndre Noll <maan@systemlinux.org>
Fri, 21 Sep 2007 09:19:38 +0000 (11:19 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 21 Sep 2007 09:19:38 +0000 (11:19 +0200)
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;