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

Tanu Kaskinen tanu.kaskinen at digia.com
Fri Mar 23 01:11:21 PDT 2012


---
 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;
-- 
1.7.8



More information about the pulseaudio-discuss mailing list