]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss: Avoid double free on exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 20 Sep 2021 18:42:37 +0000 (20:42 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Sep 2021 17:03:37 +0000 (19:03 +0200)
commitd9dd85a61ac70314c4842d7ad28bf5eb65c8c712
treed5816815817e555c6382fa556e540c427950c2fe
parent6428bef6e3c172851dc97c3e126f438c7aaf0695
vss: Avoid double free on exit.

When para_server fails to receive the fd for the next audio file,
the memory pointed to by mmd->afd.afhi.chunk_table is freed but the
pointer is not set to NULL. If the failure was due to server and afs
receiving SIGINT, the subsequent signal handling code might attempt
to free the chunk table again. This double free error is detected by
glibc, which results resulting in messages such as

free(): invalid size
Aborted

Fortunately, this is easy to fix.
vss.c