[PATCH] padsp: Fix a double-free bug.

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

 



'Twas brillig, and Tanu Kaskinen at 23/03/12 08:11 did gyre and gimble:
> ---
>  src/utils/padsp.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/utils/padsp.c b/src/utils/padsp.c
> index a8bc8d2..f6a3520 100644
> --- a/src/utils/padsp.c
> +++ b/src/utils/padsp.c
> @@ -1444,6 +1444,7 @@ static int sndstat_open(int flags, int *_errno) {
>  
>      unlink(fn);
>      pa_xfree(fn);
> +    fn = NULL;
>  
>      if (write(fd, sndstat, sizeof(sndstat) -1) != sizeof(sndstat)-1) {
>          *_errno = errno;

ACK

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



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

  Powered by Linux