[pulseaudio-discuss] [PATCH] core: Closing proper file descriptor when pipe creation fails.

Sajeesh Sidharthan sajeesh.s at samsung.com
Mon Aug 4 02:02:22 PDT 2014


---
 src/pulsecore/pipe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pulsecore/pipe.c b/src/pulsecore/pipe.c
index f873ef6..4e3c0c3 100644
--- a/src/pulsecore/pipe.c
+++ b/src/pulsecore/pipe.c
@@ -149,7 +149,7 @@ error:
         if (filedes[0] >= 0)
                 pa_close(filedes[0]);
         if (filedes[1] >= 0)
-                pa_close(filedes[0]);
+                pa_close(filedes[1]);
 
         return -1;
 }
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list