Commit c9ed9487 authored by Jean-Paul Saman's avatar Jean-Paul Saman

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

parent a4d4690c
...@@ -185,6 +185,7 @@ static void *Thread (void *data) ...@@ -185,6 +185,7 @@ static void *Thread (void *data)
pts = mdate (); pts = mdate ();
if (frames < 0) if (frames < 0)
{ {
block_Release (block);
if (frames == -EAGAIN) if (frames == -EAGAIN)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment