1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-16 00:29:50 +02:00

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

View File

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