From edd9215252e036c501a12104ac89b0f089572e9b Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 12 Apr 2014 10:03:52 +0200 Subject: [PATCH] isl_coalesce.c: eq_status_in: improve error handling Signed-off-by: Sven Verdoolaege --- isl_coalesce.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isl_coalesce.c b/isl_coalesce.c index 8b87639d..78e2834f 100644 --- a/isl_coalesce.c +++ b/isl_coalesce.c @@ -54,6 +54,9 @@ static int *eq_status_in(__isl_keep isl_basic_map *bmap_i, int *eq = isl_calloc_array(bmap_i->ctx, int, 2 * bmap_i->n_eq); unsigned dim; + if (!eq) + return NULL; + dim = isl_basic_map_total_dim(bmap_i); for (k = 0; k < bmap_i->n_eq; ++k) { for (l = 0; l < 2; ++l) { -- 2.11.4.GIT