From owner-svn-src-all@FreeBSD.ORG Wed Dec 8 01:35:19 2010 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 932AC106564A; Wed, 8 Dec 2010 01:35:19 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 828508FC0C; Wed, 8 Dec 2010 01:35:19 +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 oB81ZJQf086342; Wed, 8 Dec 2010 01:35:19 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB81ZJZt086340; Wed, 8 Dec 2010 01:35:19 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201012080135.oB81ZJZt086340@svn.freebsd.org> From: Kevin Lo Date: Wed, 8 Dec 2010 01:35:19 +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: r216285 - head/usr.sbin/cxgbtool 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: Wed, 08 Dec 2010 01:35:19 -0000 Author: kevlo Date: Wed Dec 8 01:35:19 2010 New Revision: 216285 URL: http://svn.freebsd.org/changeset/base/216285 Log: Closing file descriptors when it's done Reviewed by: np Modified: head/usr.sbin/cxgbtool/cxgbtool.c Modified: head/usr.sbin/cxgbtool/cxgbtool.c ============================================================================== --- head/usr.sbin/cxgbtool/cxgbtool.c Wed Dec 8 01:24:05 2010 (r216284) +++ head/usr.sbin/cxgbtool/cxgbtool.c Wed Dec 8 01:35:19 2010 (r216285) @@ -1014,6 +1014,8 @@ load_fw(int argc, char *argv[], int star op.len = len; if (doit(iff_name, CHELSIO_LOAD_FW, &op) < 0) err(1, "load firmware"); + + close(fd); return 0; } @@ -1048,6 +1050,7 @@ load_boot(int argc, char *argv[], int st if (doit(iff_name, CHELSIO_LOAD_BOOT, &op) < 0) err(1, "load boot image"); + close(fd); return 0; }