Warner Losh 9b4f44b31e Fix memory leak of devinfo. The leak itself was documented in
PR/108719, but there's a simpler fix: free it after it is used, and
then get rid of the redundant frees this causes.  Other leaks in this
PR not yet fixed.

While I'm here, remove NetBSD/OpenBSD code and some of the portability
#defines that were getting in the way of understanding this code.  The
devinfo bug was harder to spot because one needed to know that
device_set_desc_copy() was used inside of one of them (one that didn't
take an argument!).

Prefer device_printf(sc->sc_dev, "...") to printf("%s:...",
device_get_nameunit(sc->sc_dev)).  This saves almost 300 bytes.

PR: 108719
Submitted by: Antoine Brodin
2007-02-03 16:19:28 +00:00
..
2006-11-30 15:14:17 +00:00
2006-06-11 22:25:01 +00:00
2006-06-12 04:30:42 +00:00
2006-12-29 16:38:22 +00:00
2006-12-01 20:29:55 +00:00
2006-09-24 00:26:33 +00:00
2006-11-29 08:05:55 +00:00
2007-01-09 04:26:51 +00:00
2006-12-28 00:05:40 +00:00
2006-12-05 06:19:36 +00:00
2007-01-26 17:06:02 +00:00
2006-12-29 16:38:22 +00:00
2006-07-14 04:36:57 +00:00
2006-11-27 04:47:27 +00:00
2006-11-06 17:43:10 +00:00
2006-08-12 09:06:55 +00:00
2006-05-16 15:23:27 +00:00
2006-09-15 11:01:23 +00:00
2007-02-02 13:44:09 +00:00
2006-07-14 04:35:59 +00:00
2006-09-15 11:01:23 +00:00