freetdm: remove iterator free log
This commit is contained in:
parent
9fbe363a86
commit
c9e780b9b6
|
@ -3603,7 +3603,9 @@ FT_DECLARE(ftdm_iterator_t *) ftdm_iterator_next(ftdm_iterator_t *iter)
|
|||
return iter;
|
||||
case FTDM_ITERATOR_CHANS:
|
||||
ftdm_assert_return(iter->pvt.chaniter.index, NULL, "channel iterator index cannot be zero!\n");
|
||||
ftdm_assert_return(iter->pvt.chaniter.index <= iter->pvt.chaniter.span->chan_count, NULL, "channel iterator index bigger than span chan count!\n");
|
||||
if (iter->pvt.chaniter.index == iter->pvt.chaniter.span->chan_count) {
|
||||
return NULL;
|
||||
}
|
||||
iter->pvt.chaniter.index++;
|
||||
return iter;
|
||||
default:
|
||||
|
@ -3651,7 +3653,6 @@ FT_DECLARE(ftdm_status_t) ftdm_iterator_free(ftdm_iterator_t *iter)
|
|||
}
|
||||
|
||||
ftdm_assert_return(iter->type, FTDM_FAIL, "Cannot free invalid iterator\n");
|
||||
ftdm_log(FTDM_LOG_DEBUG, "Freeing iterator %p\n", iter);
|
||||
ftdm_safe_free(iter);
|
||||
|
||||
return FTDM_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue