Drop superfluous conditionals around g_free()
commit76eb88b12baf2bd9a1729ded33bd58b7da5d7ec3
authorMarkus Armbruster <armbru@redhat.com>
Fri, 23 Sep 2022 09:04:28 +0000 (23 11:04 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 3 Oct 2022 22:10:11 +0000 (4 00:10 +0200)
treec43a4a4027d2374c0918dac0dce7bd60be676c1b
parent90dc46d31495ec5825dc35e6984c38149261538f
Drop superfluous conditionals around g_free()

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>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220923090428.93529-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
replay/replay.c
target/i386/kvm/kvm.c
target/i386/whpx/whpx-all.c