projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
189ccc0
)
isl_affine_hull.c: affine_hull: fix erro handling
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 25 Jun 2010 19:50:48 +0000
(21:50 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000
(17:37 +0200)
isl_affine_hull.c
patch
|
blob
|
history
diff --git
a/isl_affine_hull.c
b/isl_affine_hull.c
index
df26cf9
..
8356446
100644
(file)
--- a/
isl_affine_hull.c
+++ b/
isl_affine_hull.c
@@
-206,6
+206,9
@@
static struct isl_basic_set *affine_hull(
int col;
int row;
+ if (!bset1 || !bset2)
+ goto error;
+
total = 1 + isl_basic_set_n_dim(bset1);
row = 0;
@@
-226,12
+229,13
@@
static struct isl_basic_set *affine_hull(
--row;
}
}
- isl_basic_set_free(bset2);
isl_assert(bset1->ctx, row == bset1->n_eq, goto error);
+ isl_basic_set_free(bset2);
bset1 = isl_basic_set_normalize_constraints(bset1);
return bset1;
error:
isl_basic_set_free(bset1);
+ isl_basic_set_free(bset2);
return NULL;
}