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:
a41dca9
)
isl_dim_set_name: plug memory leak when overwriting name
author
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 22 Dec 2010 15:22:54 +0000
(16:22 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 22 Dec 2010 22:34:04 +0000
(23:34 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_dim.c
patch
|
blob
|
history
diff --git
a/isl_dim.c
b/isl_dim.c
index
f6e6018
..
2ada2e1
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-345,6
+345,7
@@
struct isl_dim *isl_dim_set_name(struct isl_dim *dim,
return NULL;
if (!name_ok(dim->ctx, s))
goto error;
+ isl_name_free(dim->ctx, get_name(dim, type, pos));
name = isl_name_get(dim->ctx, s);
if (!name)
goto error;