qemu-e2k/hw/nubus
Mauro Matteo Cascella 12a51d983d hw/nubus/nubus-device: Fix memory leak in nubus_device_realize
Local variable "name" is allocated through strdup_printf and should be
freed with g_free() to avoid memory leak.

Fixes: 3616f424 ("nubus-device: add romfile property for loading declaration ROMs")
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20221222172915.671597-1-mcascell@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2023-02-27 22:29:01 +01:00
..
Kconfig
mac-nubus-bridge.c nubus-bridge: embed the NubusBus object directly within nubus-bridge 2021-09-29 10:45:19 +02:00
meson.build
nubus-bridge.c qbus: Rename qbus_create_inplace() to qbus_init() 2021-09-30 13:42:10 +01:00
nubus-bus.c nubus: move nubus to its own 32-bit address space 2021-09-29 10:45:19 +02:00
nubus-device.c hw/nubus/nubus-device: Fix memory leak in nubus_device_realize 2023-02-27 22:29:01 +01:00
trace-events nubus: add trace-events for empty slot accesses 2021-09-29 10:45:19 +02:00
trace.h nubus: add trace-events for empty slot accesses 2021-09-29 10:45:19 +02:00