diff --git a/tool/ihex.c b/tool/ihex.c index 1422d5b..b8f2f3c 100644 --- a/tool/ihex.c +++ b/tool/ihex.c @@ -121,6 +121,7 @@ int load_ihex(const char *file, unsigned char *dstbuf, int bufsize) } } while (!feof(fptr)); + fclose(fptr); return max_address; err: