summaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-01-13 12:18:53 +0100
committerWerner Koch <wk@gnupg.org>2020-01-13 12:18:53 +0100
commit2b843be5ac9f37c9faf2d9ab720eafceb3d534ad (patch)
tree77d3f671025561be8ca6eba57cb90c702fcec875 /scd/app.c
parentscd: Make SERIALNO --all work correctly and use it. (diff)
downloadgnupg2-2b843be5ac9f37c9faf2d9ab720eafceb3d534ad.tar.xz
gnupg2-2b843be5ac9f37c9faf2d9ab720eafceb3d534ad.zip
scd: Fix memory leak in command READKEY.
* scd/command.c (cmd_readcert): Replace xstrdup by xtrystrdup. (cmd_readkey): Ditto. Fix memory leak. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index 86c153676..cc2a549a5 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -2046,7 +2046,6 @@ app_do_with_keygrip (ctrl_t ctrl, int action, const char *keygrip_str,
int capability)
{
int locked = 0;
- gpg_error_t err;
card_t c;
app_t a, a_prev;