coreboot-kgpe-d16/payloads/libpayload/libcbfs
Julius Werner 55ffccfbae libpayload: cbfs: Fix minor memory leak in some edge cases
cbfs_get_handle() allocates memory for a handle and doesn't free it if
it errors out later, leaving the memory permanently leaked. Fix.

Change-Id: Ide198105ce3ad6237672ff152b4490c768909564
Reported-by: Coverity
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/16207
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2016-08-12 22:52:22 +02:00
..
Makefile.inc Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
cbfs.c libpayload: fix leak in libcbfs 2016-07-31 20:01:10 +02:00
cbfs_core.c libpayload: cbfs: Fix minor memory leak in some edge cases 2016-08-12 22:52:22 +02:00
ram_media.c libpayload: cbfs: Fix ram_media map() error return value 2015-03-21 11:04:39 +01:00