Date: Fri, 16 Jun 2006 16:14:49 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-multimedia@freebsd.org Subject: Small memory leak in sound system Message-ID: <200606161614.50505.hselasky@c2i.net>
next in thread | raw e-mail | index | archive | help
Hi, I think I have found a memory leak, but I am not completely sure. Several drivers allocate the following structure, "struct sndcard_func", but never free it. Also "uaudio". Is this correct, or have I missed something? /* PCM Audio */ func = malloc(sizeof(struct sndcard_func), M_DEVBUF, M_NOWAIT); if (func == NULL) return (ENOMEM); bzero(func, sizeof(*func)); func->func = SCF_PCM; child = device_add_child(dev, "pcm", -1); device_set_ivars(child, func); bus_generic_attach(dev); Thanks, --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606161614.50505.hselasky>