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:
parent
1eb1bc24f2
commit
61e322c840
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user