From 46fb2a7c8c804bb1e131d32e900e408e2e751dbf Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 10 Apr 2014 00:09:15 -0400 Subject: 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(+) (limited to 'pcsound') 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; -- cgit v1.2.3