projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e42f9c
)
[Title] remove memory leak
author
jinhyung.jo
<jinhyung.jo@samsung.com>
Wed, 24 Aug 2011 05:08:42 +0000
(14:08 +0900)
committer
jinhyung.jo
<jinhyung.jo@samsung.com>
Wed, 24 Aug 2011 05:08:42 +0000
(14:08 +0900)
[Type] bug fix
[Module] Emulator/Qemu
[Priority]
[CQ#]
[Redmine#] 1955
[Problem] unexpected termination of emulator
[Cause]
[Solution] insert free() codes
[TestCase]
tcg/optimize.c
patch
|
blob
|
history
diff --git
a/tcg/optimize.c
b/tcg/optimize.c
index
0da35e5
..
0771008
100644
(file)
--- a/
tcg/optimize.c
+++ b/
tcg/optimize.c
@@
-469,6
+469,12
@@
static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
break;
}
}
+
+ if (vals)
+ free(vals);
+ if (state)
+ free(state);
+
return gen_args;
}