mkzenboot: Fix double close of bootfd on error

cppcheck reported:
[rockbox/tools/mkzenboot.c:1176]: (error) Used file that is not opened.

Change-Id: Ibbf7ab2910c7f43b547fef25c62e0b4d19ff9551
This commit is contained in:
Thomas Jarosch 2014-12-20 15:18:46 +01:00
parent 1eb1bc24f2
commit 61e322c840

View File

@ -1173,7 +1173,6 @@ int mkboot(const char* infile, const char* bootfile, const char* outfile, struct
if(fwrite(&out_buffer[i+8+le2int(&out_buffer[i+4])], ciff_size-i-8-le2int(&out_buffer[i+4]), 1, outfd) != 1)
{
log_message("[ERR] Short write\n");
fclose(bootfd);
fclose(outfd);
free(out_buffer);
return -28;