diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 55e5f2de0c..a457589426 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -4490,11 +4490,6 @@ static int unload_module(void) close(netsocket); io_context_destroy(io); sched_context_destroy(sched); - /* Mark all mappings/peers as dead and then prune them */ - mark_mappings(); - prune_mappings(); - mark_peers(); - prune_peers(); return 0; }