svn commit: r199970 - head/sys/dev/hatm
Ed Maste
emaste at FreeBSD.org
Mon Nov 30 18:26:47 UTC 2009
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;
More information about the svn-src-all
mailing list