]> git.sur5r.net Git - u-boot/blobdiff - tools/imagetool.c
sunxi: mctl_mem_matches: Add missing memory barrier
[u-boot] / tools / imagetool.c
index 351211cd5387b9e727ce22501428d2a6af19cc7b..916ab964d553e2d214be17a58f1f8f86b7a36ffe 100644 (file)
@@ -107,6 +107,7 @@ int imagetool_get_filesize(struct image_tool_params *params, const char *fname)
        if (fstat(fd, &sbuf) < 0) {
                fprintf(stderr, "%s: Can't stat %s: %s\n",
                        params->cmdname, fname, strerror(errno));
+               close(fd);
                return -1;
        }
        close(fd);