svn commit: r199991 - stable/8/sbin/ipfw

Alexander Leidinger netchild at FreeBSD.org
Tue Dec 1 12:35:52 UTC 2009


Author: netchild
Date: Tue Dec  1 12:35:51 2009
New Revision: 199991
URL: http://svn.freebsd.org/changeset/base/199991

Log:
  MFC r199626:
    Fix minor resource leak in a function.
  
    Reviewed by:        luigi

Modified:
  stable/8/sbin/ipfw/dummynet.c
Directory Properties:
  stable/8/sbin/ipfw/   (props changed)

Modified: stable/8/sbin/ipfw/dummynet.c
==============================================================================
--- stable/8/sbin/ipfw/dummynet.c	Tue Dec  1 11:08:04 2009	(r199990)
+++ stable/8/sbin/ipfw/dummynet.c	Tue Dec  1 12:35:51 2009	(r199991)
@@ -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