gpg: Fix double-free in gpg --card-edit.

* g10/card-util.c (change_name): Don't free ISONAME here.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-11-28 16:57:14 +09:00
parent 2aacd843ad
commit a4698d0fb2
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 0 additions and 1 deletions

View File

@ -843,7 +843,6 @@ change_name (void)
{
tty_printf (_("Error: Combined name too long "
"(limit is %d characters).\n"), 39);
xfree (isoname);
rc = gpg_error (GPG_ERR_TOO_LARGE);
goto leave;
}