OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1518025
)
target-arm: Fix use of free() in cpu_arm_close()
author
Andreas Färber
<afaerber@suse.de>
Mon, 10 Oct 2011 02:52:28 +0000
(
02:52
+0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Thu, 20 Oct 2011 14:25:29 +0000
(14:25 +0000)
env is allocated in cpu_arm_init() with g_malloc0(), so free with g_free().
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c
patch
|
blob
|
history
diff --git
a/target-arm/helper.c
b/target-arm/helper.c
index
eddb923
..
97af4d0
100644
(file)
--- a/
target-arm/helper.c
+++ b/
target-arm/helper.c
@@
-475,7
+475,7
@@
static uint32_t cpu_arm_find_by_name(const char *name)
void cpu_arm_close(CPUARMState *env)
{
- free(env);
+
g_
free(env);
}
uint32_t cpsr_read(CPUARMState *env)