Merged revisions 82243 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 14:58:11 +0000 (14:58 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 14:58:11 +0000 (14:58 +0000)
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

pbx/pbx_dundi.c

index 169426c..e1d79c8 100644 (file)
@@ -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;
 }