]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ssi/pnv_spi: Match _xfer_buffer_free() with _xfer_buffer_new()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 7 Aug 2024 20:28:02 +0000 (22:28 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:09:09 +0000 (09:09 +1000)
commit65f53702d2e4bd045ce16ca874469cdd1e1ef4e4
treef5e28f80e4be3b91d7440f7d41da9e504dc81e18
parent3cde4c31ebe9fdfeca2d824a0036d04bec285301
hw/ssi/pnv_spi: Match _xfer_buffer_free() with _xfer_buffer_new()

pnv_spi_xfer_buffer_new() allocates %payload using g_malloc0(),
and pnv_spi_xfer_buffer_write_ptr() allocates %payload->data
using g_realloc(). Use the API equivalent g_free() to release
the buffers.

Cc: qemu-stable@nongnu.org
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ssi/pnv_spi.c