From: Tanu Kaskinen Date: Fri, 23 Mar 2012 08:11:21 +0000 (+0200) Subject: padsp: Fix a double-free bug. X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/c2c5e044cce27a25261d2603cc0a9e72806d3972?hp=bce720c85dc5bade8b279af316bb112937a1e15d padsp: Fix a double-free bug. --- diff --git a/src/utils/padsp.c b/src/utils/padsp.c index a8bc8d28..f6a35208 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;