[flashrom] [PATCH] CID1130007: Resource leak
Stefan Reinauer
stefan.reinauer at coreboot.org
Tue Nov 19 20:35:57 CET 2013
CID1130007: Resource leak
The system resource will not be reclaimed and reused, reducing the future
availability of the resource.
In ogp_spi_init: Leak of memory or pointers to system resources
Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
Index: ogp_spi.c
===================================================================
--- ogp_spi.c (revision 1763)
+++ ogp_spi.c (working copy)
@@ -120,8 +120,10 @@
ogp_reg_sck = OGA1_XP10_CPROM_SCK;
} else {
msg_perr("Invalid or missing rom= parameter.\n");
+ free(type);
return 1;
}
+ free(type);
if (rget_io_perms())
return 1;
More information about the flashrom
mailing list