commit 46fb2a7c8c804bb1e131d32e900e408e2e751dbf
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Apr 10 00:09:15 2014 -0400
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Thu Apr 10 00:09:15 2014 -0400
pcsound: Fix resouce leak with speaker_handle.
speaker_handle should be close()d after forking the separate sound
server. This fixes #192 (thanks Edward-san).
---
pcsound/pcsound_bsd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pcsound/pcsound_bsd.c b/pcsound/pcsound_bsd.c
index 6ba73037..7fb7ba36 100644
--- a/pcsound/pcsound_bsd.c
+++ b/pcsound/pcsound_bsd.c
@@ -237,6 +237,7 @@ static int StartSoundServer(void)
// This is the parent
sound_server_pid = result;
+ close(speaker_handle);
}
return 1;