mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Free newly allocated channel before returning
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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_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(s2, BUFSIZ, p->peercapability),
|
||||||
ast_getformatname_multiple(s3, BUFSIZ, p->jointcapability));
|
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");
|
gtalk_action(client, p, "reject");
|
||||||
p->alreadygone = 1;
|
p->alreadygone = 1;
|
||||||
gtalk_hangup(chan);
|
gtalk_hangup(chan);
|
||||||
|
ast_channel_free(chan);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user