]> git.tue.mpg.de Git - paraslash.git/commitdiff
server: Have afs process close the current mood on exit().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Aug 2017 20:02:48 +0000 (22:02 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:10 +0000 (03:28 +0100)
This eliminates a few (harmless but annoying) warnings about memory
leaks from the valgrind output.

afs.c

diff --git a/afs.c b/afs.c
index 961634b2afc3a1e5c51783502924efe7be0afebc..d9aa3ce05ddd4e3135b2097c149f0eaf493a4d57 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -1003,6 +1003,7 @@ __noreturn void afs_init(int socket_fd)
        }
        ret = schedule(&s);
        sched_shutdown(&s);
+       close_current_mood();
 out_close:
        close_afs_tables();
 out: