coreboot-kgpe-d16/util/intelvbttool
Jacob Garber 4fbd22e38d util/intelvbttool: Add error checking for memory allocation
It is possible that 'malloc_fo_sub' and 'remalloc_fo' can
fail, so add appropriate error checks for those cases.
This incidentally fixes a possible memory leak when
'malloc_fo_sub' succeeds but 'remalloc_fo' does not.

Found-by: Coverity Scan #1396050
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I944b67f5cdcfd7a687e81d8bb01a209c9dc9b0b8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32696
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
2019-05-13 09:12:35 +00:00
..
Makefile util/intelvbttool: Rewrite tool 2018-10-08 02:33:06 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
intelvbttool.c util/intelvbttool: Add error checking for memory allocation 2019-05-13 09:12:35 +00:00