]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sched: remove slew handler in finalization
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Feb 2020 17:03:30 +0000 (18:03 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 5 Mar 2020 15:02:15 +0000 (16:02 +0100)
This allows repeated calls of SCH_Initialise() and SCH_Finalise().

sched.c

diff --git a/sched.c b/sched.c
index 2301258627691b6cc6de7404aec16c864461c5f9..3c5dc11b7cc2a5400faceb0c87fa4fc4ffa673c8 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -147,6 +147,8 @@ void
 SCH_Finalise(void) {
   ARR_DestroyInstance(file_handlers);
 
+  LCL_RemoveParameterChangeHandler(handle_slew, NULL);
+
   initialised = 0;
 }