mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix memory leak in X509_REQ
The propq is strdup'ed in X509_REQ_new_ex, but never freed. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14907)
This commit is contained in:
parent
4e030ed45d
commit
a2502862f6
@ -60,6 +60,7 @@ static int req_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
|
||||
|
||||
case ASN1_OP_FREE_POST:
|
||||
ASN1_OCTET_STRING_free(ret->distinguishing_id);
|
||||
OPENSSL_free(ret->propq);
|
||||
break;
|
||||
case ASN1_OP_DUP_POST:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user