[Qemu-devel] [PATCH v2] linux-user: fix memory leak in failure path

2011-09-28 Thread ajia
From: Alex Jia Haven't released memory of 'host_mb' in failure path, and calling malloc allocate memory to 'host_array', however, memory hasn't been freed before the function target_to_host_semarray returns. Signed-off-by: Alex Jia --- linux-user/syscall.c |3 ++- 1 files changed, 2 inser

[Qemu-devel] [PATCH] linux-user: fix memory leak in failure path

2011-09-27 Thread ajia
From: Alex Jia Haven't released memory of 'array' and 'host_mb' in failure paths. Signed-off-by: Alex Jia --- linux-user/syscall.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7735008..922c2a0 100644 --- a/linux

[Qemu-devel] [PATCH] fix memory leak in aio_write_f

2011-09-27 Thread ajia
From: Alex Jia Haven't released memory of 'ctx' before return. Signed-off-by: Alex Jia --- qemu-io.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index e91af37..c45a413 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1248,6 +1248,7 @@ static int aio