Fixed deallocation of segmented array.