diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index c0a6d22fc0b..62d416620ea 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -895,14 +895,14 @@ int ds_load_list(char *lfile) goto error; } - LM_DBG("found [%d] dest sets\n", _ds_list_nr); - fclose(f); f = NULL; /* Update list - should it be sync'ed? */ _ds_list_nr = setn; *crt_idx = *next_idx; + LM_DBG("found [%d] dest sets\n", _ds_list_nr); + ds_log_sets(); return 0; @@ -1143,14 +1143,14 @@ int ds_load_db(void) goto err2; } - LM_DBG("found [%d] dest sets\n", _ds_list_nr); - ds_dbf.free_result(ds_db_handle, res); /* update data - should it be sync'ed? */ _ds_list_nr = setn; *crt_idx = *next_idx; + LM_DBG("found [%d] dest sets\n", _ds_list_nr); + ds_log_sets(); if(dest_errs > 0)