From f2ba32f8e9f01bc2c0040ae9e9063f2f9925064a Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 11 Sep 2007 14:56:39 +0000 Subject: [PATCH] (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/branches/1.4@82243 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 a457589426..6ae74321f6 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -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; }