fix tc_pfree free NULL pointer crashed.