Fix use freed pointer in return value from call thread