]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10577)
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 14:56:39 +0000 (14:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Sep 2007 14:56:39 +0000 (14:56 +0000)
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/branches/1.4@82243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_dundi.c

index a4575894265e45e691e88972bff30ad569f70a22..6ae74321f69b67037a48773b52e74fa08ffa158c 100644 (file)
@@ -4491,6 +4491,11 @@ static int unload_module(void)
        io_context_destroy(io);
        sched_context_destroy(sched);
 
+       mark_mappings();
+       prune_mappings();
+       mark_peers();
+       prune_peers();
+
        return 0;
 }