From 160facc5bac70a0dd6beab2c0147193906796d4b Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 7 Apr 2011 22:29:43 +0200 Subject: [PATCH] plug memory leak in isl_mat_product Signed-off-by: Sven Verdoolaege --- isl_mat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_mat.c b/isl_mat.c index 271c649..92f9498 100644 --- 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) { -- 2.7.4