wrap_facet: missing error path
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 20 Sep 2008 21:11:53 +0000 (23:11 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 12 Oct 2008 18:30:56 +0000 (20:30 +0200)
isl_convex_hull.c

index 14b5817..c7ccd8f 100644 (file)
@@ -441,6 +441,8 @@ static isl_int *wrap_facet(struct isl_ctx *ctx, struct isl_set *set,
        T = isl_mat_right_inverse(ctx, T);
        set = isl_set_preimage(ctx, set, T);
        T = NULL;
+       if (!set)
+               goto error;
        lp = wrap_constraints(ctx, set);
        obj = isl_vec_alloc(ctx, dim*set->n);
        if (!obj)