summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/v3_alt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-04-08 15:58:07 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-04-08 15:58:07 +0000
commitdb3076621b8341e6270fc9ce0a0ccae011640299 (patch)
treeaedf25a31caa8641a33c0a7969a2c678428282ee /crypto/x509v3/v3_alt.c
parent9ae5743515f88f481c0e1075c21404e67d9cc197 (diff)
PR: 1892
Fix memory leak when email:move option used.
Diffstat (limited to 'crypto/x509v3/v3_alt.c')
-rw-r--r--crypto/x509v3/v3_alt.c1
1 files changed, 1 insertions, 0 deletions
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())) {