]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
server: Fix memory leak at exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 20 Jun 2023 20:52:07 +0000 (22:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 5 Jul 2023 15:18:55 +0000 (17:18 +0200)
If a playlist is open on exit, we miss to free it. Not a real leak,
but still..

afs.c

diff --git a/afs.c b/afs.c
index 9db94a826cf842a52c0623df73e7cc246b512a09..83889bb90653360af7badaa3ba67b2ed61b4ed2e 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -963,6 +963,7 @@ __noreturn void afs_init(int socket_fd)
        ret = schedule(&s);
        sched_shutdown(&s);
        mood_unload();
+       playlist_unload();
 out_close:
        close_afs_tables();
 out: