pki: Fix a memory leak.

CID #1132819