X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fasn1%2Fx_exten.c;h=fbfd963b4063900686d83fa98fdf0c75134614a9;hb=eaa28181898b8ca0b54552a3290789bb17444c8a;hp=f5931f762383c9bc9cd229e7f3da5a1941d6c986;hpb=3ea23631d4d840429dbe026f50e8f46a5187054f;p=oweals%2Fopenssl.git diff --git a/crypto/asn1/x_exten.c b/crypto/asn1/x_exten.c index f5931f7623..fbfd963b40 100644 --- a/crypto/asn1/x_exten.c +++ b/crypto/asn1/x_exten.c @@ -122,7 +122,7 @@ X509_EXTENSION *X509_EXTENSION_new(void) M_ASN1_New_Malloc(ret,X509_EXTENSION); ret->object=OBJ_nid2obj(NID_undef); - M_ASN1_New(ret->value,ASN1_OCTET_STRING_new); + M_ASN1_New(ret->value,M_ASN1_OCTET_STRING_new); ret->critical=0; ret->netscape_hack=0; return(ret); @@ -133,7 +133,7 @@ void X509_EXTENSION_free(X509_EXTENSION *a) { if (a == NULL) return; ASN1_OBJECT_free(a->object); - ASN1_OCTET_STRING_free(a->value); - Free((char *)a); + M_ASN1_OCTET_STRING_free(a->value); + OPENSSL_free(a); }