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

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

parent a4d4690c
......@@ -185,6 +185,7 @@ static void *Thread (void *data)
pts = mdate ();
if (frames < 0)
{
block_Release (block);
if (frames == -EAGAIN)
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