projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f44862
)
- fixed memory leak: delete edges when a graph is deleted
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 20 Oct 2008 18:48:11 +0000
(18:48 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 20 Oct 2008 18:48:11 +0000
(18:48 +0000)
[r23047]
ir/ir/irgraph.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
ecaf20d
..
f349700
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-133,7
+133,10
@@
static ir_graph *alloc_graph(void) {
*/
static void free_graph(ir_graph *irg) {
char *ptr = (char *)irg;
+ int i;
+ for (i = 0; i < EDGE_KIND_LAST; ++i)
+ edges_deactivate_kind(irg, i);
DEL_ARR_F(irg->idx_irn_map);
free(ptr - additional_graph_data_size);
}