[Pkg-gnupg-commit] [gnupg2] 80/112: g13: Fix double free bug.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Aug 30 17:48:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit c9a0bccc77c93c08d6980a1718dfaf238a559eb9
Author: Werner Koch <wk at gnupg.org>
Date:   Sat Aug 13 19:42:18 2016 +0200

    g13: Fix double free bug.
    
    * g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 g13/sh-cmd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/g13/sh-cmd.c b/g13/sh-cmd.c
index 10b1ba9..20db8dc 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);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list