afs: Shutdown signals on exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 1 Jan 2018 03:35:53 +0000 (04:35 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:57 +0000 (03:28 +0100)
This frees the signal task structure, avoiding a (harmless) memory
leak on exit.

afs.c

diff --git a/afs.c b/afs.c
index ced2e451bafe4534671bbdb492066f4beeb8e1bb..75a4b97dac5eb8a9a351d71c0ac61fb7b839ee77 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -1007,6 +1007,7 @@ __noreturn void afs_init(int socket_fd)
 out_close:
        close_afs_tables();
 out:
 out_close:
        close_afs_tables();
 out:
+       signal_shutdown(signal_task);
        free_lpr();
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));
        free_lpr();
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));