aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/npcx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/npcx.c b/src/flash/nor/npcx.c
index 7304a68..4a301f1 100644
--- a/src/flash/nor/npcx.c
+++ b/src/flash/nor/npcx.c
@@ -321,6 +321,7 @@ FLASH_BANK_COMMAND_HANDLER(npcx_flash_bank_command)
npcx_bank->fiu_ver = NPCX_FIU_NPCK;
} else {
LOG_ERROR("%s is not a valid fiu", fiu);
+ free(npcx_bank);
return ERROR_TARGET_INVALID;
}
}