svn commit: r199626 - head/sbin/ipfw

Alexander Leidinger netchild at FreeBSD.org
Sat Nov 21 10:46:50 UTC 2009


Author: netchild
Date: Sat Nov 21 10:46:49 2009
New Revision: 199626
URL: http://svn.freebsd.org/changeset/base/199626

Log:
  Fix minor resource leak in a function.
  
  Reviewed by:	luigi
  MFC after:	1 week

Modified:
  head/sbin/ipfw/dummynet.c

Modified: head/sbin/ipfw/dummynet.c
==============================================================================
--- head/sbin/ipfw/dummynet.c	Sat Nov 21 06:13:29 2009	(r199625)
+++ head/sbin/ipfw/dummynet.c	Sat Nov 21 10:46:49 2009	(r199626)
@@ -650,6 +650,8 @@ load_extra_delays(const char *filename, 
 		}
 	}
 
+	fclose (f);
+
 	if (samples == -1) {
 	    warnx("'%s' not found, assuming 100", ED_TOK_SAMPLES);
 	    samples = 100;


More information about the svn-src-all mailing list