g13: Fix double free bug.
authorWerner Koch <wk@gnupg.org>
Sat, 13 Aug 2016 17:42:18 +0000 (19:42 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 13 Aug 2016 17:42:18 +0000 (19:42 +0200)
* g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.

Signed-off-by: Werner Koch <wk@gnupg.org>
g13/sh-cmd.c

index 10b1ba9..20db8dc 100644 (file)
@@ -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);
 }