From 9ec331dc46703d44f4d5ed00aa6e69f5ede75262 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 2 Dec 2012 21:56:45 +0100 Subject: [PATCH] isl_schedule.c: add_inter_validity_constraints: avoid invalid access on error Signed-off-by: Sven Verdoolaege --- isl_schedule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_schedule.c b/isl_schedule.c index b86329bd..ec314cfe 100644 --- a/isl_schedule.c +++ b/isl_schedule.c @@ -887,6 +887,8 @@ static int add_inter_validity_constraints(struct isl_sched_graph *graph, coef->n_eq, coef->n_ineq); graph->lp = isl_basic_set_add_constraints_dim_map(graph->lp, coef, dim_map); + if (!graph->lp) + goto error; isl_space_free(dim); edge->end = graph->lp->n_ineq; -- 2.11.4.GIT