Fix warnings and errors found by the new cppcheck provided static code analysis.
[pub/USBasp.git] / Bootloaders / HID / HostLoaderApp / hid_bootloader_cli.c
index e1f2ea0..4fd6ccf 100644 (file)
@@ -801,6 +801,7 @@ int read_intel_hex(const char *filename)
                if (*buf) {
                        if (parse_hex_line(buf) == 0) {
                                //printf("Warning, parse error line %d\n", lineno);
+                               fclose(fp);
                                return -2;
                        }
                }