From owner-svn-src-all@FreeBSD.ORG Tue Dec 1 12:35:52 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 63544106566C; Tue, 1 Dec 2009 12:35:52 +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 51DC08FC17; Tue, 1 Dec 2009 12:35:52 +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 nB1CZquk064503; Tue, 1 Dec 2009 12:35:52 GMT (envelope-from netchild@svn.freebsd.org) Received: (from netchild@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB1CZqbZ064502; Tue, 1 Dec 2009 12:35:52 GMT (envelope-from netchild@svn.freebsd.org) Message-Id: <200912011235.nB1CZqbZ064502@svn.freebsd.org> From: Alexander Leidinger Date: Tue, 1 Dec 2009 12:35:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r199991 - stable/8/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: Tue, 01 Dec 2009 12:35:52 -0000 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;