diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 14:18:04 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 14:18:04 +0000 |
commit | 19462d7c765442837bb8ac70295d5a037fbf8adf (patch) | |
tree | 4c7413e4845bd4634d6a3b6d5a9f50c5c203291f /channels/chan_h323.c | |
parent | 741c2964bea85f6a86960d9e53d674eb1a0ebabc (diff) |
(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
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index c13ede3c3..d519664ed 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1069,9 +1069,7 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c /* Don't use ast_set_callerid() here because it will * generate a needless NewCallerID event */ - ch->cid.cid_num = ast_strdup(cid_num); ch->cid.cid_ani = ast_strdup(cid_num); - ch->cid.cid_name = ast_strdup(cid_name); if (pvt->cd.redirect_reason >= 0) { ch->cid.cid_rdnis = ast_strdup(pvt->cd.redirect_number); |