Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2004 23:49:21 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        FreeBSD current mailing list <current@freebsd.org>
Subject:   mem leak in mii ?
Message-ID:  <Pine.BSF.4.53.0411192340590.42526@e0-0.zab2.int.zabbadoz.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.53.0411192340590.42526>