[vlc-commits] alsa: do not leak memory on failure to read frames from pcm device.

Jean-Paul Saman git at videolan.org
Wed Aug 20 15:18:59 CEST 2014


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed Aug 20 13:55:42 2014 +0200| [c9ed94876c9b6ea3b09c2131db13388ae26e49f1] | committer: Jean-Paul Saman

alsa: do not leak memory on failure to read frames from pcm device.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9ed94876c9b6ea3b09c2131db13388ae26e49f1
---

 modules/access/alsa.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/alsa.c b/modules/access/alsa.c
index 7e150de..edb8fd7 100644
--- a/modules/access/alsa.c
+++ b/modules/access/alsa.c
@@ -185,6 +185,7 @@ static void *Thread (void *data)
         pts = mdate ();
         if (frames < 0)
         {
+            block_Release (block);
             if (frames == -EAGAIN)
                 continue;
 



More information about the vlc-commits mailing list