diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-05-08 16:28:27 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-13 09:12:35 +0000 |
commit | 4fbd22e38d42faf7654cf9ded1f4001652e7fd37 (patch) | |
tree | d5a5e400a6e7655ecfbf9032b6cb69188176da91 /configs/config.google_reef_cros | |
parent | 2be617b58b500214d45c338eda88237730524cac (diff) |
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>
Diffstat (limited to 'configs/config.google_reef_cros')
0 files changed, 0 insertions, 0 deletions