From: Andre Noll Date: Mon, 1 Jan 2018 03:35:53 +0000 (+0100) Subject: afs: Shutdown signals on exit. X-Git-Tag: v0.6.2~4^2~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=07daa886fda65b868966c19e812c42433ffbfd5b;p=paraslash.git afs: Shutdown signals on exit. This frees the signal task structure, avoiding a (harmless) memory leak on exit. --- diff --git a/afs.c b/afs.c index ced2e451..75a4b97d 100644 --- a/afs.c +++ b/afs.c @@ -1007,6 +1007,7 @@ __noreturn void afs_init(int socket_fd) out_close: close_afs_tables(); out: + signal_shutdown(signal_task); free_lpr(); if (ret < 0) PARA_EMERG_LOG("%s\n", para_strerror(-ret));