mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 14:42:36 +02:00
CID1130008: Resource leak read_romlayout()
Corresponding to flashrom svn r1773. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
parent
bbdde55d42
commit
4c00d09cc0
1
layout.c
1
layout.c
@ -65,6 +65,7 @@ int read_romlayout(char *name)
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user