in source/evp_override.c [72:82]
void EVP_PKEY_free(EVP_PKEY *pkey) {
if (pkey != NULL &&
/* We must include this extra guard to avoid spurious arithmetic underflows. */
pkey->references > 0) {
pkey->references -= 1;
if (pkey->references == 0) {
EC_KEY_free(pkey->ec_key);
free(pkey);
}
}
}