qemu/hw/nvram
Philippe Mathieu-Daudé f5584a7d8d hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" 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 9e4aa1fafe added:

  DEFINE_PROP_ARRAY("pg0-lock",
                    XlnxVersalEFuseCtrl, extra_pg0_lock_n16,
                    extra_pg0_lock_spec, qdev_prop_uint16, uint16_t),

but forgot to free the 'extra_pg0_lock_spec' array. Do it in the
instance_finalize() handler.

Cc: qemu-stable@nongnu.org
Fixes: 9e4aa1fafe ("hw/nvram: Xilinx Versal eFuse device") # v6.2.0+
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231121174051.63038-6-philmd@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 4f10c66077e39969940d928077560665e155cac8)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-12-05 12:32:36 +03:00
..
chrp_nvram.c
ds1225y.c
eeprom93xx.c Drop useless casts from g_malloc() & friends to pointer 2022-10-22 23:15:40 +02:00
eeprom_at24c.c hw/at24c : modify at24c to support 1 byte address mode 2023-03-02 13:57:50 +01:00
fw_cfg-interface.c
fw_cfg.c Revert "x86: return modified setup_data only if read as memory, not as file" 2023-03-02 03:10:46 -05:00
Kconfig
mac_nvram.c mac_nvram: Add block backend to persist NVRAM contents 2023-02-06 11:41:39 +00:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
npcm7xx_otp.c
nrf51_nvm.c
spapr_nvram.c
trace-events
trace.h
xlnx-bbram.c
xlnx-efuse-crc.c
xlnx-efuse.c hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() 2023-12-05 12:32:36 +03:00
xlnx-versal-efuse-cache.c
xlnx-versal-efuse-ctrl.c hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" array 2023-12-05 12:32:36 +03:00
xlnx-zynqmp-efuse.c