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:
44129b5
)
isl_map.c: map_intersect_internal: plug memory leak on error path
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 30 Nov 2012 17:10:08 +0000
(18:10 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 1 Dec 2012 16:38:06 +0000
(17:38 +0100)
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
343d574
..
f4c9bb4
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-2858,7
+2858,7
@@
static __isl_give isl_map *map_intersect_internal(__isl_take isl_map *map1,
__isl_take isl_map *map2)
{
unsigned flags = 0;
-
struct isl_map *result
;
+
isl_map *result = NULL
;
int i, j;
if (!map1 || !map2)
@@
-2915,6
+2915,7
@@
static __isl_give isl_map *map_intersect_internal(__isl_take isl_map *map1,
error:
isl_map_free(map1);
isl_map_free(map2);
+ isl_map_free(result);
return NULL;
}