diff --git a/ntp_sources.c b/ntp_sources.c index 8c5f613..c80f09c 100644 --- a/ntp_sources.c +++ b/ntp_sources.c @@ -198,14 +198,7 @@ NSR_Initialise(void) void NSR_Finalise(void) { - SourceRecord *record; - unsigned int i; - - for (i = 0; i < ARR_GetSize(records); i++) { - record = get_record(i); - if (record->remote_addr) - clean_source_record(record); - } + NSR_RemoveAllSources(); LCL_RemoveParameterChangeHandler(slew_sources, NULL);