Closing file descriptors when it's done

Reviewed by:	np
This commit is contained in:
kevlo 2010-12-08 01:35:19 +00:00
parent 1618e3b4d5
commit 1512315a5f

View File

@ -1014,6 +1014,8 @@ load_fw(int argc, char *argv[], int start_arg, const char *iff_name)
op.len = len;
if (doit(iff_name, CHELSIO_LOAD_FW, &op) < 0)
err(1, "load firmware");
close(fd);
return 0;
}
@ -1048,6 +1050,7 @@ load_boot(int argc, char *argv[], int start_arg, const char *iff_name)
if (doit(iff_name, CHELSIO_LOAD_BOOT, &op) < 0)
err(1, "load boot image");
close(fd);
return 0;
}