Date: Mon, 30 Nov 2009 18:26:46 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r199970 - head/sys/dev/hatm Message-ID: <200911301826.nAUIQk41037222@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911301826.nAUIQk41037222>