mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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>
This commit is contained in:
committed by
Laurent Vivier
parent
90dc46d314
commit
76eb88b12b
@ -366,10 +366,8 @@ void replay_finish(void)
|
||||
fclose(replay_file);
|
||||
replay_file = NULL;
|
||||
}
|
||||
if (replay_filename) {
|
||||
g_free(replay_filename);
|
||||
replay_filename = NULL;
|
||||
}
|
||||
g_free(replay_filename);
|
||||
replay_filename = NULL;
|
||||
|
||||
g_free(replay_snapshot);
|
||||
replay_snapshot = NULL;
|
||||
|
Reference in New Issue
Block a user