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

Jean-Paul Saman git at videolan.org
Tue Aug 26 00:24:42 CEST 2014


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

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

(cherry picked from commit c9ed94876c9b6ea3b09c2131db13388ae26e49f1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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