diff options
Diffstat (limited to 'src/flash/nor/faux.c')
-rw-r--r-- | src/flash/nor/faux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/faux.c b/src/flash/nor/faux.c index 1fd1da2..8198ef5 100644 --- a/src/flash/nor/faux.c +++ b/src/flash/nor/faux.c @@ -50,7 +50,7 @@ FLASH_BANK_COMMAND_HANDLER(faux_flash_bank_command) return ERROR_FAIL; } info->memory = malloc(bank->size); - if (info == NULL) { + if (info->memory == NULL) { free(info); LOG_ERROR("no memory for flash bank info"); return ERROR_FAIL; |