isl_affine_hull.c: equalities_in_underlying_set: plug memory leak on error path
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 25 Jun 2010 19:55:05 +0000 (21:55 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000 (17:37 +0200)
isl_affine_hull.c

index 8356446..0e8811b 100644 (file)
@@ -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);