Re: [PATCH] Drop superfluous conditionals around g_free()

2022-09-29 Thread Laurent Vivier
Le 23/09/2022 à 11:04, Markus Armbruster a écrit : There is no need to guard g_free(P) with if (P): g_free(NULL) is safe. Signed-off-by: Markus Armbruster --- replay/replay.c | 6 ++ target/i386/kvm/kvm.c | 12 target/i386/whpx/whpx-all.c | 14

Re: [PATCH] Drop superfluous conditionals around g_free()

2022-09-23 Thread Philippe Mathieu-Daudé via
On Fri, Sep 23, 2022 at 11:13 AM Markus Armbruster wrote: > > There is no need to guard g_free(P) with if (P): g_free(NULL) is safe. > > Signed-off-by: Markus Armbruster > --- > replay/replay.c | 6 ++ > target/i386/kvm/kvm.c | 12 >

[PATCH] Drop superfluous conditionals around g_free()

2022-09-23 Thread Markus Armbruster
There is no need to guard g_free(P) with if (P): g_free(NULL) is safe. Signed-off-by: Markus Armbruster --- replay/replay.c | 6 ++ target/i386/kvm/kvm.c | 12 target/i386/whpx/whpx-all.c | 14 ++ 3 files changed, 12 insertions(+), 20 deletions(-)