coreboot-kgpe-d16/src/lib
Jacob Garber 698d83a7c8 lib: Prevent memory leak on error path
Free the tree before returning to prevent a leak.

Change-Id: I1132c0e7404eec1af3adc19a83257f28563f8a58
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1401799
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33298
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2019-06-21 08:31:02 +00:00
..
gnat
b64_decode.c
boot_device.c boot_device: Constify argument 2019-05-12 07:47:45 +00:00
bootblock.c lib/bootblock: Sanitize CMOS after bootblock_*_early_init() 2019-05-23 08:47:59 +00:00
bootmem.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
bootmode.c Remove unnecessary ENV_RAMSTAGE guard 2019-05-14 06:56:59 +00:00
cb.ads Hook up Kconfig Ada spec file 2019-02-06 16:20:35 +00:00
cbfs.c src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
cbmem_common.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
cbmem_console.c src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c commonlib: fix typo LB_TAB_* (instead of LB_TAG_*) 2019-05-29 20:12:57 +00:00
decompressor.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
delay.c
device_tree.c lib: Prevent memory leak on error path 2019-06-21 08:31:02 +00:00
dimm_info_util.c
edid.c lib/edid.c: Add missing break statement 2019-03-29 06:35:55 +00:00
edid_fill_fb.c
ext_stage_cache.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
fallback_boot.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
fit.c device_tree: Add version checks 2019-06-04 11:22:47 +00:00
fit_payload.c src: Drop unused 'include <cbfs.h>' 2019-03-19 17:14:39 +00:00
fmap.c lib/fmap: Add area read/write functions 2019-04-23 10:22:54 +00:00
gcc.c
gcov-glue.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c src: Add missing include 'console.h' 2019-04-23 10:00:39 +00:00
gpio.c src: include <assert.h> when appropriate 2019-04-23 10:01:36 +00:00
halt.c
hardwaremain.c src: Use include <reset.h> when appropriate 2019-03-29 20:00:20 +00:00
hexdump.c lib/hexdump: Drop redundant isprint() implementation 2019-05-13 09:14:55 +00:00
hexstrtobin.c
hw-time-timer.adb
imd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
imd_cbmem.c Move calls to quick_ram_check() before CBMEM init 2019-03-27 08:26:16 +00:00
jpeg.c
jpeg.h
Kconfig src/Kconfig: Move DRAM section to src/lib/Kconfig 2019-05-20 10:58:56 +00:00
libgcc.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
libgcov.c
list.c
lzma.c src: Drop unused include <timestamp.h> 2019-03-07 17:17:12 +00:00
lzmadecode.c src/{include,arch,cpu,lib}: Add missing 'include <types.h>' 2019-05-29 20:27:18 +00:00
lzmadecode.h
Makefile.inc lib/Makefile.inc: Add hexdump.c to postcar stage 2019-06-05 13:02:57 +00:00
malloc.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
nhlt.c
primitive_memtest.c
prog_loaders.c stage_cache: Make empty inline function if CONFIG_NO_STAGE_CACHE enable 2019-06-13 04:39:28 +00:00
prog_ops.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
program.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
ramtest.c Move calls to quick_ram_check() before CBMEM init 2019-03-27 08:26:16 +00:00
reg_script.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
region_file.c
reset.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
rmodule.c src: Remove unneeded include <lib.h> 2018-11-16 09:50:51 +00:00
rmodule.ld
romstage_handoff.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
romstage_stack.c
rtc.c rtc: Fix rtc_calc_weekday 2019-02-27 11:07:11 +00:00
selfboot.c src/lib/selfboot: Remove unused variables 2019-04-25 15:55:21 +00:00
spd_bin.c lib/spd_bin.c: Remove unused include <arch/byteorder.h> 2019-06-19 12:30:04 +00:00
stack.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
string.c string.h: Move common string functions into .c file 2019-05-31 18:22:11 +00:00
thread.c src: Use #include <timer.h> when appropriate 2019-04-06 16:02:49 +00:00
timer.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
timer_queue.c
timestamp.c timestamp: Update TIMESTAMP_CACHE_IN_BSS to include ENV_POSTCAR 2019-05-19 18:13:26 +00:00
trace.c
ubsan.c
version.c ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
wrdd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00