diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-04-23 09:35:06 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-04-24 08:22:13 +0000 |
commit | 969e1ddff74149cd89ddb9a22021f28544ba8c96 (patch) | |
tree | 13befc09a38d7785c812092882128b46703d5bc1 | |
parent | 0916a347e2a4c130da22c867ed5040cec339aae6 (diff) | |
download | flashrom-969e1ddff74149cd89ddb9a22021f28544ba8c96.tar.gz flashrom-969e1ddff74149cd89ddb9a22021f28544ba8c96.tar.bz2 flashrom-969e1ddff74149cd89ddb9a22021f28544ba8c96.zip |
stlinkv3_spi: Fix memory leak
Change-Id: Ic650b43395c64b1677f6e114b0faf42a3b7b3759
Found-by: Coverity Scan #1415214
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/40652
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
-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); |