Bugfix: Set global pointers to NULL after they are freed.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Mon, 6 Oct 2008 11:53:26 +0000 (11:53 +0000)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Mon, 6 Oct 2008 11:53:26 +0000 (11:53 +0000)
[r22528]

heuristical.c

index f9c0132..37f62ac 100644 (file)
@@ -35,10 +35,14 @@ static void free_buckets(void)
 
        for (i = 0; i < 4; ++i) {
                DEL_ARR_F(node_buckets[i]);
+               node_buckets[i] = NULL;
        }
 
        DEL_ARR_F(edge_bucket);
+       edge_bucket = NULL;
+
        DEL_ARR_F(reduced_bucket);
+       reduced_bucket = NULL;
 
        buckets_filled = 0;
 }