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:
264a314
)
isl_basic_map_insert_dims: plug memory leak when called on empty input
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 11 Apr 2013 15:47:21 +0000
(17:47 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 11 Apr 2013 15:48:13 +0000
(17:48 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
c7ac138
..
c4636c1
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-3052,6
+3052,7
@@
__isl_give isl_basic_map *isl_basic_map_insert_dims(
res = isl_basic_map_set_rational(res);
if (isl_basic_map_plain_is_empty(bmap)) {
isl_basic_map_free(bmap);
+ free(dim_map);
return isl_basic_map_set_to_empty(res);
}
res = isl_basic_map_add_constraints_dim_map(res, bmap, dim_map);