This is an automated email from Gerrit.

"Name of user not set <panci...@eswincomputing.com>" just uploaded a new patch 
set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7546

-- gerrit

commit 68a5109d5d0cbe36d93eacd4312d48d1b452e94b
Author: panciyan <panci...@eswincomputing.com>
Date:   Mon Mar 20 02:26:58 2023 +0000

    flash/nor: missing fileio_close.
    
    Signed-off-by: panciyan <panci...@eswincomputing.com>
    Change-Id: I6142f154741dcd38088b7add2793219ee4dd2ae9

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 4ff6d98386..159f5203a9 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -813,6 +813,7 @@ COMMAND_HANDLER(handle_flash_write_bank_command)
 
        if (buf_cnt != length) {
                LOG_ERROR("Short read");
+               fileio_close(fileio);
                free(buffer);
                return ERROR_FAIL;
        }

-- 

Reply via email to