[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Drop superfluous conditionals around g_free()
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] Drop superfluous conditionals around g_free() |
Date: |
Fri, 23 Sep 2022 11:27:47 +0200 |
On Fri, Sep 23, 2022 at 11:13 AM Markus Armbruster <armbru@redhat.com> wrote:
>
> There is no need to guard g_free(P) with if (P): g_free(NULL) is safe.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> replay/replay.c | 6 ++----
> target/i386/kvm/kvm.c | 12 ++++--------
> target/i386/whpx/whpx-all.c | 14 ++++++--------
> 3 files changed, 12 insertions(+), 20 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>