From owner-svn-src-head@FreeBSD.ORG Mon Nov 30 18:26:47 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B86C106568F; Mon, 30 Nov 2009 18:26:47 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8EB8FC18; Mon, 30 Nov 2009 18:26:47 +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 nAUIQkj0037223; Mon, 30 Nov 2009 18:26:46 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nAUIQk41037222; Mon, 30 Nov 2009 18:26:46 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <200911301826.nAUIQk41037222@svn.freebsd.org> From: Ed Maste Date: Mon, 30 Nov 2009 18:26:46 +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: r199970 - head/sys/dev/hatm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 18:26:47 -0000 Author: emaste Date: Mon Nov 30 18:26:46 2009 New Revision: 199970 URL: http://svn.freebsd.org/changeset/base/199970 Log: Free pointer from getenv() when done with it. Submitted by: Phil Longstaff Modified: head/sys/dev/hatm/if_hatm.c Modified: head/sys/dev/hatm/if_hatm.c ============================================================================== --- head/sys/dev/hatm/if_hatm.c Mon Nov 30 11:44:03 2009 (r199969) +++ head/sys/dev/hatm/if_hatm.c Mon Nov 30 18:26:46 2009 (r199970) @@ -1325,6 +1325,7 @@ kenv_getuint(struct hatm_softc *sc, cons freeenv(val); return (EINVAL); } + freeenv(val); if (bootverbose) if_printf(sc->ifp, "%s=%u\n", full, u); *ptr = u;