qemu-e2k/hw/nvram
Philippe Mathieu-Daudé 49b3e28b7b hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize()
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 68fbcc344e added:

  DEFINE_PROP_ARRAY("read-only", XlnxEFuse, ro_bits_cnt, ro_bits,
                    qdev_prop_uint32, uint32_t),

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

Cc: qemu-stable@nongnu.org
Fixes: 68fbcc344e ("hw/nvram: Introduce Xilinx eFuse QOM") # v6.2.0+
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231121174051.63038-5-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:43 +00:00
..
chrp_nvram.c
ds1225y.c
eeprom93xx.c migration: Use vmstate_register_any() for eeprom93xx 2023-11-01 16:13:58 +01:00
eeprom_at24c.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
fw_cfg-interface.c
fw_cfg.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
Kconfig
mac_nvram.c mac_nvram: Add block backend to persist NVRAM contents 2023-02-06 11:41:39 +00:00
meson.build crypto: only include tls-cipher-suites in emulators 2023-10-03 10:29:39 +02:00
npcm7xx_otp.c
nrf51_nvm.c
spapr_nvram.c block: Change blk_{pread,pwrite}() param order 2022-07-12 12:14:56 +02:00
trace-events
trace.h
xlnx-bbram.c xlnx-bbram: hw/nvram: Remove deprecated device reset 2023-10-19 13:01:52 +01:00
xlnx-efuse-crc.c
xlnx-efuse.c hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() 2023-11-27 15:27:43 +00:00
xlnx-versal-efuse-cache.c
xlnx-versal-efuse-ctrl.c xlnx-versal-efuse: hw/nvram: Remove deprecated device reset 2023-10-19 13:01:52 +01:00
xlnx-zynqmp-efuse.c xlnx-zynqmp-efuse: hw/nvram: Remove deprecated device reset 2023-10-19 13:01:52 +01:00