summaryrefslogtreecommitdiff
path: root/pbx/pbx_dundi.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-09-11 14:58:11 +0000
committerJoshua Colp <jcolp@digium.com>2007-09-11 14:58:11 +0000
commit078595f5c578e8ac4c12c580a1db88e3facda461 (patch)
tree43294ec395d2a1db48255eb56b5cf23560d181f6 /pbx/pbx_dundi.c
parentd6247edfaee4fbb8d6abc425decfcb024b4bc5a6 (diff)
Merged revisions 82243 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82243 | file | 2007-09-11 11:56:39 -0300 (Tue, 11 Sep 2007) | 6 lines (closes issue #10577) Reported by: jamesgolovich Patches: asterisk-dundifree.diff.txt uploaded by jamesgolovich (license 176) Don't leak memory when unloading DUNDi. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_dundi.c')
-rw-r--r--pbx/pbx_dundi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 169426c4c..e1d79c83a 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;
}