From 6540dc01ecd80796e45386b6c174ce9fb15f4a01 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 30 Jul 2010 19:44:01 +0200 Subject: [PATCH] isl_transitive_closure.c: fix double free on error path Signed-off-by: Sven Verdoolaege --- isl_transitive_closure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_transitive_closure.c b/isl_transitive_closure.c index 8adb934..339c0c4 100644 --- a/isl_transitive_closure.c +++ b/isl_transitive_closure.c @@ -1363,9 +1363,9 @@ static int merge(isl_set **set, int *group, __isl_take isl_set *dom, int pos) continue; set[i] = isl_set_union(set[i], set[group[pos]]); + set[group[pos]] = NULL; if (!set[i]) goto error; - set[group[pos]] = NULL; group[group[pos]] = i; group[pos] = i; } -- 2.7.4