aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fwcontrol
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-28 05:34:38 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-28 05:34:38 +0000
commitd8dfc65f4378db309b92e340587e6b5f6aa1ba41 (patch)
tree399ea539896cf7e7db727e60441eb70e5e2ab1c0 /usr.sbin/fwcontrol
parente495018e91bccc2d2fc7e697371750d9e688e1d7 (diff)
downloadsrc-d8dfc65f4378db309b92e340587e6b5f6aa1ba41.tar.gz
src-d8dfc65f4378db309b92e340587e6b5f6aa1ba41.zip
Close fd when we're done dv-sending the file.
CID: 978413
Notes
Notes: svn path=/head/; revision=327279
Diffstat (limited to 'usr.sbin/fwcontrol')
-rw-r--r--usr.sbin/fwcontrol/fwdv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/fwcontrol/fwdv.c b/usr.sbin/fwcontrol/fwdv.c
index e35281f73735..0dbf17d04a42 100644
--- a/usr.sbin/fwcontrol/fwdv.c
+++ b/usr.sbin/fwcontrol/fwdv.c
@@ -417,4 +417,5 @@ send_end:
+ (end.tv_usec - start.tv_usec) * 1e-6;
fprintf(stderr, "%d frames, %.2f secs, %.2f frames/sec\n",
frames, rtime, frames/rtime);
+ close(fd);
}