qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v2 1/1] util/uri: do not check argument of uri_free()


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 1/1] util/uri: do not check argument of uri_free()
Date: Tue, 29 Jun 2021 09:00:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 6/29/21 8:36 AM, Heinrich Schuchardt wrote:
> uri_free() checks if its argument is NULL in uri_clean() and g_free().
> There is no need to check the argument before the call.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2:
>       remove unrelated subproject change
> ---
>  block/nfs.c |  4 +---
>  block/ssh.c |  4 +---
>  util/uri.c  | 22 ++++++----------------
>  3 files changed, 8 insertions(+), 22 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>




reply via email to

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