matrix: fix leak in general eigenvector computation