]> code.delx.au - pulseaudio/commitdiff
padsp: Fix a double-free bug.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 23 Mar 2012 08:11:21 +0000 (10:11 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 28 Mar 2012 14:22:23 +0000 (17:22 +0300)
src/utils/padsp.c

index a8bc8d28074c40566099678e05602a5d06092908..f6a352084bdaec38900cb8d5b2a35b0e3e7eb8e4 100644 (file)
@@ -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;