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

Colin Guthrie gmane at colin.guthr.ie
Fri Mar 23 02:43:56 PDT 2012


'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/



More information about the pulseaudio-discuss mailing list