qemu-e2k/hw/input
Philippe Mathieu-Daudé 6e782ffd55 hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array
Commit 0be6bfac62 ("qdev: Implement variable length array properties")
added the DEFINE_PROP_ARRAY() macro with the following comment:

  * It is the responsibility of the device deinit code to free the
  * @_arrayfield memory.

Commit a75f336b97 added:

  DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons,
                    keycodes, qdev_prop_uint32, uint32_t),

but forgot to free the 'keycodes' array. Do it in the instance_finalize
handler.

Fixes: a75f336b97 ("hw/input/stellaris_input: Convert to qdev")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231121174051.63038-7-philmd@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-11-27 15:27:46 +00:00
..
adb-internal.h
adb-kbd.c
adb-mouse.c Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
adb.c migration: Use vmstate_register_any() 2023-11-01 16:13:58 +01:00
ads7846.c migration: Use vmstate_register_any() 2023-11-01 16:13:58 +01:00
hid.c
Kconfig hw/input/stellaris_input: Rename to stellaris_gamepad 2023-11-02 12:52:06 +00:00
lasips2.c
lm832x.c
meson.build hw/input/stellaris_input: Rename to stellaris_gamepad 2023-11-02 12:52:06 +00:00
pckbd.c
pl050.c
ps2.c
pxa2xx_keypad.c
stellaris_gamepad.c hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array 2023-11-27 15:27:46 +00:00
trace-events
trace.h
tsc210x.c
tsc2005.c
vhost-user-input.c
virtio-input-hid.c
virtio-input-host.c
virtio-input.c