diff options
-rw-r--r-- | stlinkv3_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stlinkv3_spi.c b/stlinkv3_spi.c index 73389118..9e621c27 100644 --- a/stlinkv3_spi.c +++ b/stlinkv3_spi.c @@ -495,6 +495,7 @@ int stlinkv3_spi_init(void) msg_perr("The spispeed parameter passed with invalid format: %s\n", speed_str); msg_perr("Please pass the parameter with a simple number in kHz\n"); + free(speed_str); return -1; } free(speed_str); |