coreboot/payloads/libpayload/drivers
Martin Roth 05396238da libpayload/drivers: Fix mem-leak in cbmem_console error condition
When returning from cbmem_console_snapshot() because of a corrupted
console structure, the memory that was just allocated was not being
freed as it "should be".

BUG=CID 1419477

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I85370fb49c9ef9a00cd2ea516fa80c9e152c9b48
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88334
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-07-08 16:18:25 +00:00
..
i8042 libpayload: Fix clang fallthrough warning 2023-08-28 02:12:25 +00:00
serial libpayload: Fix compiler warnings 2022-11-21 21:08:30 +00:00
storage libpayload: Add x86_64 (64-bit) support 2024-05-26 01:26:31 +00:00
timer libpayload: timer: Revert timer_hz() return type to 64-bits 2024-02-08 21:07:13 +00:00
udc libpayload: Fix compiler warnings 2022-11-21 21:08:30 +00:00
usb libpayload: usbmsc: Correctly deal with disks larger than 2TB 2025-05-02 23:24:25 +00:00
video cbgfx: Prevent divide-by-zero edge case in Lanczos kernel 2025-05-06 21:04:04 +00:00
cbmem_console.c libpayload/drivers: Fix mem-leak in cbmem_console error condition 2025-07-08 16:18:25 +00:00
hid.c
Makefile.mk payloads: Rename Makefiles from .inc to .mk 2024-01-24 10:15:10 +00:00
mouse_cursor.c
nvram.c
options.c
pci_io_ops.c
pci_map_bus_ops.c
pci_ops.c
pci_qcom.c
pcie_mediatek.c
speaker.c