ipseckey: Properly free public key after creating certificate