1
0
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:
Stefan Tauner
2011-06-26 20:45:35 +00:00
parent b23df71149
commit 00155498a8
4 changed files with 18 additions and 8 deletions

View File

@ -1206,6 +1206,7 @@ int chipset_flash_enable(void)
struct pci_dev *dev = NULL;
int ret = -2; /* Nothing! */
int i;
char *s;
/* Now let's try to find the chipset we have... */
for (i = 0; chipset_enables[i].vendor_name != NULL; i++) {
@ -1244,8 +1245,9 @@ int chipset_flash_enable(void)
msg_pinfo("PROBLEMS, continuing anyway\n");
}
msg_pinfo("This chipset supports the following protocols: %s.\n",
flashbuses_to_text(buses_supported));
s = flashbuses_to_text(buses_supported);
msg_pinfo("This chipset supports the following protocols: %s.\n", s);
free(s);
return ret;
}