summaryrefslogtreecommitdiffstats
path: root/ogp_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ogp_spi.c')
-rw-r--r--ogp_spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogp_spi.c b/ogp_spi.c
index f8f7b2d..23431d1 100644
--- a/ogp_spi.c
+++ b/ogp_spi.c
@@ -120,8 +120,10 @@ int ogp_spi_init(void)
ogp_reg_sck = OGA1_XP10_CPROM_SCK;
} else {
msg_perr("Invalid or missing rom= parameter.\n");
+ free(type);
return 1;
}
+ free(type);
if (rget_io_perms())
return 1;
OpenPOWER on IntegriCloud