From a9c87b24e4a86ed231e9bb486a553ed5f09d902a Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Tue, 12 Apr 2011 18:19:41 +0000 Subject: [PATCH] white space change ........ reload Chan_dahdi memory leak caused by variables chan_dahdi reloading with variables set via setvar in chan_dahdi.conf would stay in the dahdi_pvt structs for individual channels (causing them to just continue adding the new ones to the list) and also there was a memory leak causes by the conf objects. This patch resolves both of these by using ast_variables_destroy during the loading process. (closes issue #17450) Reported by: nahuelgreco Patches: patch.diff uploaded by jrose (license 1225) Tested by: tilghman, jrose Review: https://reviewboard.asterisk.org/r/1170/ ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@313433 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_dahdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index bb58df3ee4..63a99fab6a 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -18122,7 +18122,7 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct if (confp->chan.vars) { ast_variables_destroy(confp->chan.vars); confp->chan.vars = NULL; - } + } if (dahdichan[0]) { /* The user has set 'dahdichan' */ -- 2.47.2