From 70bb7e60f7de3b601ea46b24bda402542c9b2332 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Tue, 9 Dec 2008 09:26:19 +0000 Subject: [PATCH] Free temporary data structures. [r24438] --- heuristical.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/heuristical.c b/heuristical.c index 71e448087..6226c79ec 100644 --- a/heuristical.c +++ b/heuristical.c @@ -880,6 +880,8 @@ static unsigned get_minimal_alternative(pbqp *pbqp, pbqp_node *node) unsigned bucket_0_length; unsigned bucket_red_length; + char *tmp = obstack_finish(&pbqp->obstack); + node_bucket_init(&bucket_deg3); /* Some node buckets and the edge bucket should be empty. */ @@ -925,6 +927,8 @@ static unsigned get_minimal_alternative(pbqp *pbqp, pbqp_node *node) /* Free copies. */ /* obstack_free(&pbqp->obstack, tmp); */ node_bucket_free(&bucket_deg3); + + obstack_free(&pbqp->obstack, tmp); } return min_index; -- 2.20.1