summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/video-buf.c
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-12-02 14:23:54 +0000
committerGerd Knorr <devnull@localhost>2004-12-02 14:23:54 +0000
commite1cbf7915c2b64872018b2407f4d1887b93065e2 (patch)
treeb78a22d84b3b8d48ccfb7c751a96ff4f4c6816e2 /linux/drivers/media/video/video-buf.c
parentd390d2b04ddcd1d70bf5ae89e677ad03bd680e90 (diff)
downloadmediapointer-dvb-s2-e1cbf7915c2b64872018b2407f4d1887b93065e2.tar.gz
mediapointer-dvb-s2-e1cbf7915c2b64872018b2407f4d1887b93065e2.tar.bz2
- fix memory leak in drivers.
Diffstat (limited to 'linux/drivers/media/video/video-buf.c')
-rw-r--r--linux/drivers/media/video/video-buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/video-buf.c b/linux/drivers/media/video/video-buf.c
index 5e1608f13..33740d57b 100644
--- a/linux/drivers/media/video/video-buf.c
+++ b/linux/drivers/media/video/video-buf.c
@@ -1,5 +1,5 @@
/*
- * $Id: video-buf.c,v 1.15 2004/11/07 14:45:00 kraxel Exp $
+ * $Id: video-buf.c,v 1.16 2004/12/02 14:23:54 kraxel Exp $
*
* generic helper functions for video4linux capture buffers, to handle
* memory management and PCI DMA. Right now bttv + saa7134 use it.
@@ -902,6 +902,7 @@ void videobuf_read_stop(struct videobuf_queue *q)
int i;
videobuf_queue_cancel(q);
+ videobuf_mmap_free(q);
INIT_LIST_HEAD(&q->stream);
for (i = 0; i < VIDEO_MAX_FRAME; i++) {
if (NULL == q->bufs[i])