fixed deallocate bug
parse trace file