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

Arun Raghavan arun at accosted.net
Mon Aug 4 01:42:49 PDT 2014


On Mon, 2014-08-04 at 14:32 +0530, Sajeesh Sidharthan wrote:
> ---
>  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;
>  }

I've pulled this now. Thanks for the patch!

-- Arun



More information about the pulseaudio-discuss mailing list