From fc93cfef5841e53ade0253aa09af89de6d12f7b8 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 25 Jun 2010 21:55:05 +0200 Subject: [PATCH] isl_affine_hull.c: equalities_in_underlying_set: plug memory leak on error path --- isl_affine_hull.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isl_affine_hull.c b/isl_affine_hull.c index 8356446..0e8811b 100644 --- a/isl_affine_hull.c +++ b/isl_affine_hull.c @@ -811,9 +811,10 @@ static struct isl_basic_set *equalities_in_underlying_set( if (!T2) return hull; - if (!hull) + if (!hull) { isl_mat_free(T1); - else { + isl_mat_free(T2); + } else { struct isl_vec *sample = isl_vec_copy(hull->sample); if (sample && sample->size > 0) sample = isl_mat_vec_product(T1, sample); -- 2.7.4