summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-05-20 20:14:28 +0000
committerMark Michelson <mmichelson@digium.com>2009-05-20 20:14:28 +0000
commit8139c8ed4e15c5315b659208b4b3af0b153f77d2 (patch)
treed419586022a7d25aa3a4a101f96b9a7c9fbba7b8 /apps
parentb4c24d2da1cc723d63d060f28c78ac9b50ec02f3 (diff)
Plug a memory leak in app_dial.
Since we may have copied connected line info into the chanlist struct prior to placing an outbound call, we need to be sure to free the allocated data when we hang the call up. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@195763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_dial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index fb14ac0c5..790e49ffa 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -594,6 +594,7 @@ static void hanguptree(struct chanlist *outgoing, struct ast_channel *exception,
/* This is for the channel drivers */
outgoing->chan->hangupcause = AST_CAUSE_ANSWERED_ELSEWHERE;
}
+ ast_party_connected_line_free(&outgoing->connected);
ast_hangup(outgoing->chan);
}
oo = outgoing;