Fix memory leak, sc_pkcs15_cert_t *cert is never freed