diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-06 00:37:30 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-06 00:37:30 +0000 |
commit | 76afbffb58eaae1202697c5cf460acf1d0cf9745 (patch) | |
tree | e9dd8967eb6340c52193e7aeff09c23f24022c68 /channels/chan_iax2.c | |
parent | 30d0332ffe06d2417aa6099337349f0bc21fbf75 (diff) |
Finally track down and eliminate the "FRACK! warnings from chan_iax2".
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268495 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 30f9d721a..04ce7ee7b 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3281,7 +3281,16 @@ static void iax2_destroy(int callno) retry: if ((pvt = iaxs[callno])) { +#if 0 + /* iax2_destroy_helper gets called from this function later on. When + * called twice, we get the (previously) familiar FRACK! errors in + * devmode, from the scheduler. An alternative to this approach is to + * reset the scheduler entries to -1 when they're deleted in + * iax2_destroy_helper(). That approach was previously decided to be + * "wrong" because "the memory is going to be deallocated anyway. Why + * should we be resetting those values?" */ iax2_destroy_helper(pvt); +#endif } owner = pvt ? pvt->owner : NULL; |