Author: stefanct Date: Sat Apr 26 18:11:39 2014 New Revision: 1773 URL: http://flashrom.org/trac/flashrom/changeset/1773
Log: CID1130008: Resource leak read_romlayout().
Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org Acked-by: Stefan Tauner stefan.tauner@alumni.tuwien.ac.at
Modified: trunk/layout.c
Modified: trunk/layout.c ============================================================================== --- trunk/layout.c Sat Apr 26 18:11:30 2014 (r1772) +++ trunk/layout.c Sat Apr 26 18:11:39 2014 (r1773) @@ -65,6 +65,7 @@ if (num_rom_entries >= MAX_ROMLAYOUT) { msg_gerr("Maximum number of ROM images (%i) in layout " "file reached.\n", MAX_ROMLAYOUT); + fclose(romlayout); return 1; } if (2 != fscanf(romlayout, "%s %s\n", tempstr, rom_entries[num_rom_entries].name))