From c2c5e044cce27a25261d2603cc0a9e72806d3972 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Fri, 23 Mar 2012 10:11:21 +0200 Subject: [PATCH 1/1] padsp: Fix a double-free bug. --- src/utils/padsp.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2