projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9a104
)
plug memory leak in isl_mat_product
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 7 Apr 2011 20:29:43 +0000
(22:29 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 11 Apr 2011 19:06:07 +0000
(21:06 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_mat.c
patch
|
blob
|
history
diff --git
a/isl_mat.c
b/isl_mat.c
index
271c649
..
92f9498
100644
(file)
--- a/
isl_mat.c
+++ b/
isl_mat.c
@@
-937,6
+937,8
@@
struct isl_mat *isl_mat_product(struct isl_mat *left, struct isl_mat *right)
if (left->n_col == 0) {
for (i = 0; i < prod->n_row; ++i)
isl_seq_clr(prod->row[i], prod->n_col);
+ isl_mat_free(left);
+ isl_mat_free(right);
return prod;
}
for (i = 0; i < prod->n_row; ++i) {