coreboot-kgpe-d16/util/romcc
Jacob Garber 9742ae1d11 util/romcc: Fix memory leak
The 'new_type' function already allocates memory, so it is only
necessary to clone the existing type if this function is not called.

Change-Id: I47065204c5f4b6bab022bd7ccf19838c3ce1f86e
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity Scan CID 1129106
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32921
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2019-05-23 09:02:07 +00:00
..
results Undoing all HDAMA commits from LNXI from r2005->2003 2005-08-10 15:16:44 +00:00
tests util/romcc: Fix parsing of empty string literal 2019-05-21 09:28:36 +00:00
COPYING Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
Makefile romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00
romcc.1 romcc.1: Point bug reporters to the coreboot ML / bug tracker 2016-05-01 16:29:09 +02:00
romcc.c util/romcc: Fix memory leak 2019-05-23 09:02:07 +00:00
test.sh romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00