From baeac65d39a4759c806837037131f5df9d12a603 Mon Sep 17 00:00:00 2001 From: emaste Date: Mon, 30 Nov 2009 18:26:46 +0000 Subject: Free pointer from getenv() when done with it. Submitted by: Phil Longstaff --- sys/dev/hatm/if_hatm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/hatm') diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c index 325e532..5344fe4 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; -- cgit v1.1