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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux