PR: 1892
Fix memory leak when email:move option used.
This commit is contained in:
parent
9ae5743515
commit
db3076621b
@ -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())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user