]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 5f95b74fa1ed74dd5aca25e4bad749b42aa7068f..391516f30ebeacb82758c1aa4af51bfffa45e0c6 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;