summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/dummynet.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2009-11-21 10:46:49 +0000
committernetchild <netchild@FreeBSD.org>2009-11-21 10:46:49 +0000
commit10efa8a23836d92c902c5f6a2847850c92f0d65f (patch)
tree569a689287fe53a8cc830dec1b3205a202d7602a /sbin/ipfw/dummynet.c
parentb3b08bfd699d61f6520f29d6316aa110987cabb2 (diff)
downloadFreeBSD-src-10efa8a23836d92c902c5f6a2847850c92f0d65f.zip
FreeBSD-src-10efa8a23836d92c902c5f6a2847850c92f0d65f.tar.gz
Fix minor resource leak in a function.
Reviewed by: luigi MFC after: 1 week
Diffstat (limited to 'sbin/ipfw/dummynet.c')
-rw-r--r--sbin/ipfw/dummynet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/dummynet.c b/sbin/ipfw/dummynet.c
index 1473284..41ad48e 100644
--- a/sbin/ipfw/dummynet.c
+++ b/sbin/ipfw/dummynet.c
@@ -650,6 +650,8 @@ load_extra_delays(const char *filename, struct dn_pipe *p)
}
}
+ fclose (f);
+
if (samples == -1) {
warnx("'%s' not found, assuming 100", ED_TOK_SAMPLES);
samples = 100;
OpenPOWER on IntegriCloud