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

2011-09-28 Thread Peter Maydell
On 28 September 2011 11:37, Alex Jia wrote: > On 09/28/2011 05:43 PM, Peter Maydell wrote: >> >> On 28 September 2011 09:24,  wrote: >>> >>> From: Alex Jia >>> >>> Haven't released memory of 'host_mb' in failure path, and calling malloc >>> allocate >>> memory to 'host_array', however, memory hasn

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

2011-09-28 Thread Alex Jia
On 09/28/2011 05:43 PM, Peter Maydell wrote: On 28 September 2011 09:24, wrote: 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. Sign

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

2011-09-28 Thread Peter Maydell
On 28 September 2011 09:24, wrote: > 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 > --- >  li

[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