Free pointer and debug changes