aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2009-11-30 18:26:46 +0000
committerEd Maste <emaste@FreeBSD.org>2009-11-30 18:26:46 +0000
commita4911e169677f2212f850e479e5b8f908f93b263 (patch)
tree795da667caf3a767aee659c4517dc1b7f67fec2e
parent5022f21bd974c740b9052f149fb31745dc602965 (diff)
downloadsrc-a4911e169677f2212f850e479e5b8f908f93b263.tar.gz
src-a4911e169677f2212f850e479e5b8f908f93b263.zip
Free pointer from getenv() when done with it.
Submitted by: Phil Longstaff
Notes
Notes: svn path=/head/; revision=199970
-rw-r--r--sys/dev/hatm/if_hatm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c
index 325e5325c76d..5344fe49eeba 100644
--- a/sys/dev/hatm/if_hatm.c
+++ b/sys/dev/hatm/if_hatm.c
@@ -1325,6 +1325,7 @@ kenv_getuint(struct hatm_softc *sc, const char *var,
freeenv(val);
return (EINVAL);
}
+ freeenv(val);
if (bootverbose)
if_printf(sc->ifp, "%s=%u\n", full, u);
*ptr = u;