From owner-cvs-all@FreeBSD.ORG Tue Mar 15 08:02:48 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0738616A4CE; Tue, 15 Mar 2005 08:02:48 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D091243D3F; Tue, 15 Mar 2005 08:02:47 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2F82lhU038081; Tue, 15 Mar 2005 08:02:47 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2F82lKW038080; Tue, 15 Mar 2005 08:02:47 GMT (envelope-from imp) Message-Id: <200503150802.j2F82lKW038080@repoman.freebsd.org> From: Warner Losh Date: Tue, 15 Mar 2005 08:02:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fdc fdc_isa.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 08:02:48 -0000 imp 2005-03-15 08:02:47 UTC FreeBSD src repository Modified files: sys/dev/fdc fdc_isa.c Log: If we fail a sanity check for the resources just allocated, make sure that we free that resource. All the other resources are freed in their own routine, but since we haven't saved a pointer to this one, it is leaked. This is the failure case that lead to the sio ports that weren't working, I think. Revision Changes Path 1.22 +3 -1 src/sys/dev/fdc/fdc_isa.c