summaryrefslogtreecommitdiffhomepage
path: root/ir/kaps
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-04-25 16:46:10 +0200
committerMatthias Braun <matze@braunis.de>2014-04-25 16:59:08 +0200
commit9e4ad1fbc2938724444652953a99cc631eaf2596 (patch)
treee315727980b95b44ef051ffada4d71d4fb97592c /ir/kaps
parenta727f98b88aaa7588241c9e1e910ed780f4d030d (diff)
fix a bunch of memory leaks reported by coverity
Diffstat (limited to 'ir/kaps')
-rw-r--r--ir/kaps/optimal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/kaps/optimal.c b/ir/kaps/optimal.c
index 1e19fc4..8bbbaae 100644
--- a/ir/kaps/optimal.c
+++ b/ir/kaps/optimal.c
@@ -345,6 +345,7 @@ static void merge_source_into_target(pbqp_t *pbqp, pbqp_edge_t *edge)
#if KAPS_STATISTIC
pbqp->num_r1--;
#endif
+ DEL_ARR_F(mapping);
}
/**
@@ -484,6 +485,7 @@ static void merge_target_into_source(pbqp_t *pbqp, pbqp_edge_t *edge)
#if KAPS_STATISTIC
pbqp->num_r1--;
#endif
+ DEL_ARR_F(mapping);
}
/**