diff options
author | Andreas Färber <afaerber@suse.de> | 2011-10-10 02:52:28 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2011-10-20 14:25:29 +0000 |
commit | 12b1de3a3f026a2e27993b60749122b02509533c (patch) | |
tree | 56f098e69001c919e6ba53a0f794a9aad6367245 /target-arm | |
parent | 1518025641c6c067518c871be7f72a524dc68711 (diff) | |
download | qemu-12b1de3a3f026a2e27993b60749122b02509533c.zip qemu-12b1de3a3f026a2e27993b60749122b02509533c.tar.gz qemu-12b1de3a3f026a2e27993b60749122b02509533c.tar.bz2 |
target-arm: Fix use of free() in cpu_arm_close()
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>
Diffstat (limited to 'target-arm')
-rw-r--r-- | target-arm/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index eddb923..97af4d0 100644 --- 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) |