aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-11-28 07:57:14 +0000
committerNIIBE Yutaka <[email protected]>2022-11-28 07:59:21 +0000
commita4698d0fb20a11bcb5f5e4485ee334af02b48ee1 (patch)
tree7495122d930bb1d35b3494651f35a5c41521039e
parentgpg: Make --require-compliance work with out --status-fd (diff)
downloadgnupg-a4698d0fb20a11bcb5f5e4485ee334af02b48ee1.tar.gz
gnupg-a4698d0fb20a11bcb5f5e4485ee334af02b48ee1.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 339194fb5..02de241f2 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -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;
}