mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Merged revisions 79174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79174 | file | 2007-08-13 11:18:04 -0300 (Mon, 13 Aug 2007) | 4 lines (closes issue #10437) Reported by: haklin Don't set the callerid name and number a second time on a newly created channel. ast_channel_alloc itself already sets it and setting it twice would cause a memory leak. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -453,8 +453,6 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
|
||||
ast_mutex_lock(&p->lock);
|
||||
|
||||
p->chan->cid.cid_num = ast_strdup(p->owner->cid.cid_num);
|
||||
p->chan->cid.cid_name = ast_strdup(p->owner->cid.cid_name);
|
||||
p->chan->cid.cid_rdnis = ast_strdup(p->owner->cid.cid_rdnis);
|
||||
p->chan->cid.cid_ani = ast_strdup(p->owner->cid.cid_ani);
|
||||
p->chan->cid.cid_pres = p->owner->cid.cid_pres;
|
||||
|
Reference in New Issue
Block a user