Removes unused allocated int*