pki: Fix a memory leak.

CID #1132819
tests: Add missing line breaks.