mem leak in mii ?

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Fri Nov 19 15:50:10 PST 2004


Hi,

in sys/dev/mii/mii.c there are two calls to malloc for ivars;
see for example mii_phy_probe:

        v = malloc(sizeof(vm_offset_t) * 2, M_DEVBUF, M_NOWAIT);
        if (v == 0) {
                return (ENOMEM);
        }
        v[0] = ifmedia_upd;
        v[1] = ifmedia_sts;
        *child = device_add_child(dev, "miibus", -1);
        device_set_ivars(*child, v);

Where is the free for this malloc ? I cannot find it.

analogous: miibus_probe ?

-- 
Greetings
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT


More information about the freebsd-current mailing list