projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da7d95
)
orcprogram: Free type names of variables when freeing a program
author
Sebastian Dröge
<sebastian@centricular.com>
Sun, 13 Apr 2014 19:22:37 +0000
(21:22 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 13 Apr 2014 19:22:37 +0000
(21:22 +0200)
orc/orcprogram.c
patch
|
blob
|
history
diff --git
a/orc/orcprogram.c
b/orc/orcprogram.c
index
2669633
..
8788100
100644
(file)
--- a/
orc/orcprogram.c
+++ b/
orc/orcprogram.c
@@
-162,6
+162,10
@@
orc_program_free (OrcProgram *program)
free (program->vars[i].name);
program->vars[i].name = NULL;
}
+ if (program->vars[i].type_name) {
+ free (program->vars[i].type_name);
+ program->vars[i].type_name = NULL;
+ }
}
if (program->asm_code) {
free (program->asm_code);