From 15e664556dbc0e4c2d45a7fbfe0c5b537531aeb9 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Mon, 6 Oct 2008 11:53:26 +0000 Subject: [PATCH] Bugfix: Set global pointers to NULL after they are freed. [r22528] --- heuristical.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.20.1