Fixed memory leak in read_eigenvalues