Cleaned up memory leak from array.