summaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/broadcom/secimage/io.c')
-rw-r--r--util/broadcom/secimage/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/broadcom/secimage/io.c b/util/broadcom/secimage/io.c
index c32a06dc7a..d71065c9c4 100644
--- a/util/broadcom/secimage/io.c
+++ b/util/broadcom/secimage/io.c
@@ -81,6 +81,7 @@ int DataRead(char *filename, uint8_t *buf, int *length)
if (fread((uint8_t *)buf, 1, len, file) != len) {
printf("Error reading data (%d bytes) from file: %s\n",
len, filename);
+ fclose(file);
return -1;
}
fclose(file);