aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pony_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pony_spi.c b/pony_spi.c
index 86ef238c..a3ac274f 100644
--- a/pony_spi.c
+++ b/pony_spi.c
@@ -161,6 +161,7 @@ static int pony_spi_init(void)
if (!have_device) {
msg_perr("Error: No valid device specified.\n"
"Use flashrom -p pony_spi:dev=/dev/device[,type=name]\n");
+ free(data);
return 1;
}