[flashrom] [commit] r1772 - trunk

repository service svn at flashrom.org
Sat Apr 26 18:11:30 CEST 2014


Author: stefanct
Date: Sat Apr 26 18:11:30 2014
New Revision: 1772
URL: http://flashrom.org/trac/flashrom/changeset/1772

Log:
CID1130012: Double free in pony_spi_init().

Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
Acked-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>

Modified:
   trunk/pony_spi.c

Modified: trunk/pony_spi.c
==============================================================================
--- trunk/pony_spi.c	Sat Apr 26 18:11:21 2014	(r1771)
+++ trunk/pony_spi.c	Sat Apr 26 18:11:30 2014	(r1772)
@@ -140,6 +140,7 @@
 	} 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);




More information about the flashrom mailing list