diff options
-rw-r--r-- | util/iteflash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/iteflash.c b/util/iteflash.c index 68e4b34862..fd83980c77 100644 --- a/util/iteflash.c +++ b/util/iteflash.c @@ -1502,6 +1502,7 @@ static int write_flash(struct common_hnd *chnd, const char *filename, fprintf(stderr, "%s: Failed to read %d bytes from %s with " "ferror() %d\n", __func__, size, filename, ferror(hnd)); free(buffer); + fclose(hnd); return -EIO; } fclose(hnd); |