aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-04 19:26:15 +0000
committerphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-04 19:26:15 +0000
commit6ec9a195fc0957d79a38dc0d81845695f9a6abae (patch)
tree8c6afdacefb1248bfeaa8aff0f1c781bffa6bb61 /channels
parentc0a54db9afd3e1e397ce3a405f930375af63b436 (diff)
Free newly allocated channel before returning
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@112820 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_gtalk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c
index ba097512d..2dc56035e 100644
--- a/channels/chan_gtalk.c
+++ b/channels/chan_gtalk.c
@@ -1203,10 +1203,11 @@ static int gtalk_newcall(struct gtalk *client, ikspak *pak)
ast_log(LOG_WARNING, "Capabilities don't match : us - %s, peer - %s, combined - %s \n", ast_getformatname_multiple(s1, BUFSIZ, p->capability),
ast_getformatname_multiple(s2, BUFSIZ, p->peercapability),
ast_getformatname_multiple(s3, BUFSIZ, p->jointcapability));
- /* close session if capabilities don't match */
+ /* close session if capabilities don't match */
gtalk_action(client, p, "reject");
p->alreadygone = 1;
gtalk_hangup(chan);
+ ast_channel_free(chan);
return -1;
}