diff options
author | Alistair Francis <alistair23@gmail.com> | 2025-03-03 12:31:20 +1000 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-04 14:45:34 +0100 |
commit | 7fc96bc4fca0cd8f1733235e987fe8ccf4517203 (patch) | |
tree | 6c7c9ff336e3ddcbd82b116b40ce349cbb89f4d8 /hw/misc/macio | |
parent | 543671d9907f7604b83fa9e76cdb04fa9fab9cdc (diff) | |
download | qemu-7fc96bc4fca0cd8f1733235e987fe8ccf4517203.zip qemu-7fc96bc4fca0cd8f1733235e987fe8ccf4517203.tar.gz qemu-7fc96bc4fca0cd8f1733235e987fe8ccf4517203.tar.bz2 |
hw/char/sifive_uart: Free fifo on unrealize
We previously allocate the fifo on reset and never free it, which means
we are leaking memory.
Instead let's allocate on realize and free on unrealize.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Tested-by: Clément Chigot <chigot@adacore.com>
Message-ID: <20250303023120.157221-1-alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/misc/macio')
0 files changed, 0 insertions, 0 deletions