mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 06:01:16 +02:00
Fix memleaks due to incorrect usage of flashbuses_to_text
Corresponding to flashrom svn r1357. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@ -1186,10 +1186,11 @@ notfound:
|
||||
#endif
|
||||
snprintf(location, sizeof(location), "on %s", programmer_table[programmer].name);
|
||||
|
||||
tmp = flashbuses_to_text(flash->bustype);
|
||||
msg_cinfo("%s chip \"%s %s\" (%d kB, %s) %s.\n",
|
||||
force ? "Assuming" : "Found",
|
||||
fill_flash->vendor, fill_flash->name, fill_flash->total_size,
|
||||
flashbuses_to_text(fill_flash->bustype), location);
|
||||
force ? "Assuming" : "Found", fill_flash->vendor,
|
||||
fill_flash->name, fill_flash->total_size, tmp, location);
|
||||
free(tmp);
|
||||
|
||||
/* Flash registers will not be mapped if the chip was forced. Lock info
|
||||
* may be stored in registers, so avoid lock info printing.
|
||||
|
Reference in New Issue
Block a user