|
From: openocd-gerrit <ope...@us...> - 2023-03-28 09:38:24
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via c1b14d678fd77095ef5c076c0e927aeed6a753c7 (commit)
from b939224ab6e6e28e5211aac0303951ae4fabaf1f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c1b14d678fd77095ef5c076c0e927aeed6a753c7
Author: panciyan <pan...@es...>
Date: Mon Mar 20 02:26:58 2023 +0000
flash/nor: missing fileio_close.
If the file read abnormally, need to close it which was opened before.
Signed-off-by: panciyan <pan...@es...>
Change-Id: I6142f154741dcd38088b7add2793219ee4dd2ae9
Reviewed-on: https://review.openocd.org/c/openocd/+/7546
Tested-by: jenkins
Reviewed-by: Tomas Vanek <va...@fb...>
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index ecbcf00aa..22c1710ad 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -814,6 +814,7 @@ COMMAND_HANDLER(handle_flash_write_bank_command)
if (buf_cnt != length) {
LOG_ERROR("Short read");
free(buffer);
+ fileio_close(fileio);
return ERROR_FAIL;
}
-----------------------------------------------------------------------
Summary of changes:
src/flash/nor/tcl.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
Main OpenOCD repository
|