Author: stefanct Date: Sat Apr 26 18:11:50 2014 New Revision: 1774 URL: http://flashrom.org/trac/flashrom/changeset/1774
Log: CID1130007: Resource leak in ogp_spi.
Memory leak in ogp_spi_init().
Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org Acked-by: Stefan Tauner stefan.tauner@alumni.tuwien.ac.at
Modified: trunk/ogp_spi.c
Modified: trunk/ogp_spi.c ============================================================================== --- trunk/ogp_spi.c Sat Apr 26 18:11:39 2014 (r1773) +++ trunk/ogp_spi.c Sat Apr 26 18:11:50 2014 (r1774) @@ -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;