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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to