diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-04-08 15:58:07 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-04-08 15:58:07 +0000 |
commit | db3076621b8341e6270fc9ce0a0ccae011640299 (patch) | |
tree | aedf25a31caa8641a33c0a7969a2c678428282ee /crypto | |
parent | 9ae5743515f88f481c0e1075c21404e67d9cc197 (diff) |
PR: 1892
Fix memory leak when email:move option used.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509v3/v3_alt.c | 1 |
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())) { |