mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 14:42:36 +02:00
CID1130012: Double free in pony_spi_init()
Corresponding to flashrom svn r1772. 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
a54169b3d1
commit
bbdde55d42
@ -140,6 +140,7 @@ int pony_spi_init(void)
|
||||
} else if (arg && !strlen(arg)) {
|
||||
msg_perr("Error: Missing argument for programmer type.\n");
|
||||
free(arg);
|
||||
return 1;
|
||||
} else if (arg){
|
||||
msg_perr("Error: Invalid programmer type specified.\n");
|
||||
free(arg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user