From 19462d7c765442837bb8ac70295d5a037fbf8adf Mon Sep 17 00:00:00 2001 From: file Date: Mon, 13 Aug 2007 14:18:04 +0000 Subject: (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: http://svn.digium.com/svn/asterisk/branches/1.4@79174 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_mgcp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'channels/chan_mgcp.c') diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 50203a15e..bfcb3e8b4 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1469,9 +1469,7 @@ static struct ast_channel *mgcp_new(struct mgcp_subchannel *sub, int state) /* Don't use ast_set_callerid() here because it will * generate a needless NewCallerID event */ - tmp->cid.cid_num = ast_strdup(i->cid_num); tmp->cid.cid_ani = ast_strdup(i->cid_num); - tmp->cid.cid_name = ast_strdup(i->cid_name); if (!i->adsi) tmp->adsicpe = AST_ADSI_UNAVAILABLE; -- cgit v1.2.3