From db3076621b8341e6270fc9ce0a0ccae011640299 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 8 Apr 2009 15:58:07 +0000 Subject: [PATCH] PR: 1892 Fix memory leak when email:move option used. --- crypto/x509v3/v3_alt.c | 1 + 1 file changed, 1 insertion(+) 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())) { -- 2.25.1