summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-08-12 11:14:14 -0600
committerNico Huber <nico.h@gmx.de>2019-09-24 19:02:48 +0000
commit1c091d1aebb055149c89f88fd5766ca4e33b7b3e (patch)
tree1ca7c754bcaaf1b9e8150af14af58a8a609838bf /programmer.h
parent15f539c8c978e002f2b6397a7a74e1af817d5cb3 (diff)
downloadflashrom-1c091d1aebb055149c89f88fd5766ca4e33b7b3e.tar.gz
flashrom-1c091d1aebb055149c89f88fd5766ca4e33b7b3e.tar.bz2
flashrom-1c091d1aebb055149c89f88fd5766ca4e33b7b3e.zip
internal: Fix board vendor and model memory leaks
The board vendor and model are sometimes specified as arguments during an internal flash, so make sure they are freed at the end of initialization. Change-Id: I9f43708f3b075896be67acec114bc6f390f8c6ca Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: Coverity CID 1230664, 1230665 Reviewed-on: https://review.coreboot.org/c/flashrom/+/34846 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h
index 34ef33d50..e42c6bb58 100644
--- a/programmer.h
+++ b/programmer.h
@@ -272,7 +272,7 @@ void internal_delay(unsigned int usecs);
#if CONFIG_INTERNAL == 1
/* board_enable.c */
int selfcheck_board_enables(void);
-int board_parse_parameter(const char *boardstring, const char **vendor, const char **model);
+int board_parse_parameter(const char *boardstring, char **vendor, char **model);
void w836xx_ext_enter(uint16_t port);
void w836xx_ext_leave(uint16_t port);
void probe_superio_winbond(void);