From cd29ab0435d38dbda7a4aa7a0ed53ffb06460afa Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 28 Nov 2022 16:57:14 +0900 Subject: [PATCH] gpg: Fix double-free in gpg --card-edit. * g10/card-util.c (change_name): Don't free ISONAME here. -- Signed-off-by: NIIBE Yutaka --- g10/card-util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/g10/card-util.c b/g10/card-util.c index 25c284e85..cfbe10e75 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -801,7 +801,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; }