diff --git a/jtag/src/tap/cable/usbblaster.c b/jtag/src/tap/cable/usbblaster.c index 64951678..93ef1c75 100644 --- a/jtag/src/tap/cable/usbblaster.c +++ b/jtag/src/tap/cable/usbblaster.c @@ -67,6 +67,13 @@ usbblaster_connect( char *params[], cable_t *cable ) params_t *cable_params; int result; + cable_params = (params_t *)malloc( sizeof(params_t) ); + if (!cable_params) + { + free( cable ); + return 4; + } + /* perform generic_usbconn_connect */ result = generic_usbconn_connect( params, cable );