summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorariff <ariff@FreeBSD.org>2007-02-01 09:30:01 +0000
committerariff <ariff@FreeBSD.org>2007-02-01 09:30:01 +0000
commitf763a443cd487389b72898bd4b6bc2f9631efa68 (patch)
treeeec76dce19b46a4210252b2ad4810113a5c897fe /sys/dev/sound
parentfb2efa60c39bd6fe28856149967ea4752437a2ea (diff)
downloadFreeBSD-src-f763a443cd487389b72898bd4b6bc2f9631efa68.zip
FreeBSD-src-f763a443cd487389b72898bd4b6bc2f9631efa68.tar.gz
Fix apparent memory leak (during vchan destruction) that was here
since eon.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pcm/vchan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c
index b210dca..eb7e16c 100644
--- a/sys/dev/sound/pcm/vchan.c
+++ b/sys/dev/sound/pcm/vchan.c
@@ -334,6 +334,7 @@ vchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c,
static int
vchan_free(kobj_t obj, void *data)
{
+ free(data, M_DEVBUF);
return 0;
}
OpenPOWER on IntegriCloud