aboutsummaryrefslogtreecommitdiffstats
path: root/g13/sh-cmd.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-13 17:42:18 +0000
committerWerner Koch <[email protected]>2016-08-13 17:42:18 +0000
commitc9a0bccc77c93c08d6980a1718dfaf238a559eb9 (patch)
treeaef38cc474ffbdc000f1666276d5cb908cc0a12f /g13/sh-cmd.c
parentg13: Consider g13tab for a mount command. (diff)
downloadgnupg-c9a0bccc77c93c08d6980a1718dfaf238a559eb9.tar.gz
gnupg-c9a0bccc77c93c08d6980a1718dfaf238a559eb9.zip
g13: Fix double free bug.
* g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g13/sh-cmd.c')
-rw-r--r--g13/sh-cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/g13/sh-cmd.c b/g13/sh-cmd.c
index 10b1ba93b..20db8dce0 100644
--- a/g13/sh-cmd.c
+++ b/g13/sh-cmd.c
@@ -495,7 +495,6 @@ cmd_mount (assuan_context_t ctx, char *line)
tuples);
leave:
- xfree (tuples);
destroy_tupledesc (tuples);
return leave_cmd (ctx, err);
}
@@ -610,7 +609,6 @@ cmd_resume (assuan_context_t ctx, char *line)
tuples);
leave:
- xfree (tuples);
destroy_tupledesc (tuples);
return leave_cmd (ctx, err);
}