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 <[email protected]>
Acked-by: Stefan Tauner <[email protected]>

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);

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to