aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-11-28 07:57:14 +0000
committerNIIBE Yutaka <[email protected]>2022-11-29 23:56:05 +0000
commitcd29ab0435d38dbda7a4aa7a0ed53ffb06460afa (patch)
tree147c6afce8d1e45a232462796c0556ef9d30e6fc
parentgpg: use iobuf_read for higher detached signing speed (diff)
downloadgnupg-cd29ab0435d38dbda7a4aa7a0ed53ffb06460afa.tar.gz
gnupg-cd29ab0435d38dbda7a4aa7a0ed53ffb06460afa.zip
gpg: Fix double-free in gpg --card-edit.
* g10/card-util.c (change_name): Don't free ISONAME here. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--g10/card-util.c1
1 files changed, 0 insertions, 1 deletions
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;
}