fix double close in error case

This commit is contained in:
Steve Markgraf 2024-12-29 14:00:02 +01:00
parent 4b42dfd36f
commit 9dcd5d9890

View file

@ -117,6 +117,7 @@ int main(int argc, char *argv[])
goto err; goto err;
} }
fclose(fp); fclose(fp);
fp = NULL;
} }
uint16_t code_len = (fw[0x02] << 8) | fw[0x03]; uint16_t code_len = (fw[0x02] << 8) | fw[0x03];