projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42c981c
)
Bugfix: Set global pointers to NULL after they are freed.
author
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Mon, 6 Oct 2008 11:53:26 +0000
(11:53 +0000)
committer
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Mon, 6 Oct 2008 11:53:26 +0000
(11:53 +0000)
[r22528]
heuristical.c
patch
|
blob
|
history
diff --git
a/heuristical.c
b/heuristical.c
index
f9c0132
..
37f62ac
100644
(file)
--- 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;
}