Close dangling file handle

git-svn-id: svn://svn.berlios.de/openocd/trunk@616 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-04-24 20:40:52 +00:00
parent 040e254243
commit 9334cd451b
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ int handle_flash_erase_address_command(struct command_context_s *cmd_ctx, char *
p = get_flash_bank_by_addr(target, address);
if (p == NULL)
{
return ERROR_COMMAND_SYNTAX_ERROR;
return ERROR_FAIL;
}
/* We can't know if we did a resume + halt, in which case we no longer know the erased state */