From: Sebastian Buchwald Date: Mon, 6 Oct 2008 11:53:26 +0000 (+0000) Subject: Bugfix: Set global pointers to NULL after they are freed. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=15e664556dbc0e4c2d45a7fbfe0c5b537531aeb9;p=libfirm Bugfix: Set global pointers to NULL after they are freed. [r22528] --- diff --git a/heuristical.c b/heuristical.c index f9c0132cd..37f62acc3 100644 --- a/heuristical.c +++ b/heuristical.c @@ -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; }