padsp: Fix a double-free bug.

This commit is contained in:
Tanu Kaskinen 2012-03-23 10:11:21 +02:00 committed by Tanu Kaskinen
parent bce720c85d
commit c2c5e044cc

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