From owner-svn-src-all@FreeBSD.ORG Sat Nov 21 10:46:50 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FDB11065670; Sat, 21 Nov 2009 10:46:50 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0E0B58FC08; Sat, 21 Nov 2009 10:46:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nALAkncq077649; Sat, 21 Nov 2009 10:46:49 GMT (envelope-from netchild@svn.freebsd.org) Received: (from netchild@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nALAknkT077647; Sat, 21 Nov 2009 10:46:49 GMT (envelope-from netchild@svn.freebsd.org) Message-Id: <200911211046.nALAknkT077647@svn.freebsd.org> From: Alexander Leidinger Date: Sat, 21 Nov 2009 10:46:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r199626 - head/sbin/ipfw X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 10:46:50 -0000 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;