added memory cleanup for performance_vector