EC_KEY *eckey = NULL;
EC_GROUP *group = NULL;
EC_POINT *pnt = NULL;
- const BIGNUM *d;
+ BIGNUM *d = NULL;
pkey = EVP_PKEY_new();
if (pkey) {
eckey = EC_KEY_new();
php_openssl_store_errors();
goto clean_exit;
}
+
+ BN_free(d);
} else if ((x = zend_hash_str_find(Z_ARRVAL_P(data), "x", sizeof("x") - 1)) != NULL &&
Z_TYPE_P(x) == IS_STRING &&
(y = zend_hash_str_find(Z_ARRVAL_P(data), "y", sizeof("y") - 1)) != NULL &&
php_openssl_store_errors();
}
clean_exit:
+ if (d != NULL) {
+ BN_free(d);
+ }
if (pnt != NULL) {
EC_POINT_free(pnt);
}