mem leak in mii ?

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Fri, 19 Nov 2004 23:49:21 +0000 (UTC)
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
Received on Fri Nov 19 2004 - 22:50:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:22 UTC