diff options
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3644,8 +3644,6 @@ static void die(int sig) /* de-init some modules */ modExitIminternal(); - unregCfSysLineHdlrs(); /* TODO: this needs to go away when the module de-init works */ - /* TODO: this would also be the right place to de-init the builtin output modules. We * do not currently do that, because the module interface does not allow for * it. This will come some time later (it's essential with loadable modules). @@ -3658,6 +3656,12 @@ static void die(int sig) */ modUnloadAndDestructAll(); + /* the following line cleans up CfSysLineHandlers that were not based on loadable + * modules. As such, they are not yet cleared. + */ + unregCfSysLineHdlrs(); + + /* clean up auxiliary data */ if(pModDir != NULL) free(pModDir); |