From: Dr. Stephen Henson Date: Wed, 8 Apr 2009 15:58:07 +0000 (+0000) Subject: PR: 1892 X-Git-Tag: OpenSSL_1_0_0-beta2~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db3076621b8341e6270fc9ce0a0ccae011640299;p=oweals%2Fopenssl.git PR: 1892 Fix memory leak when email:move option used. --- diff --git a/crypto/x509v3/v3_alt.c b/crypto/x509v3/v3_alt.c index b13c5674a1..f7c7874cac 100644 --- a/crypto/x509v3/v3_alt.c +++ b/crypto/x509v3/v3_alt.c @@ -366,6 +366,7 @@ static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p) if (move_p) { X509_NAME_delete_entry(nm, i); + X509_NAME_ENTRY_free(ne); i--; } if(!email || !(gen = GENERAL_NAME_new())) {