diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 169426c4ce..e1d79c83a2 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -4743,6 +4743,11 @@ static int unload_module(void) io_context_destroy(io); sched_context_destroy(sched); + mark_mappings(); + prune_mappings(); + mark_peers(); + prune_peers(); + return 0; }