change **chan_info to *chan_info and add free()
fix problem with TRACE