1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Closing file descriptors when it's done

Reviewed by:	np
This commit is contained in:
Kevin Lo 2010-12-08 01:35:19 +00:00
parent 65c12bf571
commit 4a1988af0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216285

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;
}