Trivial memory leak when reading truncated ed25519 key files

Found while working on #16794 (moved). Will fix on that branch. Opening this ticket to give it a number.