Check pointer is reallocated