qemu/dump
Markus Armbruster 96afbc571c dump: Fix g_array_unref(NULL) in dump-guest-memory
When dump_init()'s check for non-zero @length fails, dump_cleanup()
passes null s->string_table_buf to g_array_unref(), which spews "GLib:
g_array_unref: assertion 'array' failed" to stderr.

Guard the g_array_unref().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20231031104531.3169721-3-armbru@redhat.com>
2023-11-02 18:40:50 +04:00
..
dump-hmp-cmds.c dump: Add command interface for kdump-raw formats 2023-11-02 18:40:37 +04:00
dump.c dump: Fix g_array_unref(NULL) in dump-guest-memory 2023-11-02 18:40:50 +04:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
win_dump.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
win_dump.h dump: Simplify compiling win_dump.o by introducing win_dump_available() 2023-02-27 22:29:02 +01:00