qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user: Remove redundant null check and rep


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] linux-user: Remove redundant null check and replace free by g_free
Date: Sun, 23 Sep 2012 07:35:52 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Sep 04, 2012 at 10:14:19PM +0200, Stefan Weil wrote:
> Report from smatch:
> 
> linux-user/syscall.c:3632 do_ioctl_dm(220) info:
>  redundant null check on big_buf calling free()
> 
> 'big_buf' was allocated by g_malloc0, therefore free was also
> replaced by g_free.
> 
> Signed-off-by: Stefan Weil <address@hidden>
> ---
>  linux-user/syscall.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]