It may be keep some garbage address. So after work finished by pointer just make it NULL.