fixed leak occurring during backtrace