unallocating memory