change free

solve the memory crash