Don't let ast_channel_alloc fail if explicitly passed NULL cid_name or cid_number.
authorMark Michelson <mmichelson@digium.com>
Fri, 10 Apr 2009 16:06:22 +0000 (16:06 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 10 Apr 2009 16:06:22 +0000 (16:06 +0000)
commitbdcf8fca816de8cd5420a17582907fecb5321480
tree6fe1e7cb6fd80d9498858f1be7eed65431f39956
parent32cd7d1d607ddda6a3cb5f45decbee9c74148b19
Don't let ast_channel_alloc fail if explicitly passed NULL cid_name or cid_number.

This also fixes a small memory leak.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c