From 078595f5c578e8ac4c12c580a1db88e3facda461 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Tue, 11 Sep 2007 14:58:11 +0000
Subject: [PATCH] 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
---
 pbx/pbx_dundi.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }
 
-- 
GitLab