[git] GnuPG - branch, master, updated. gnupg-2.2.7-205-g7c96cc6

[email protected] (by NIIBE Yutaka)
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e (commit)
      from  99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e
Author: NIIBE Yutaka <[email protected]>
Date:   Fri Sep 7 13:01:52 2018 +0900

    g10: Fix memory leak.
    
    * g10/import.c (read_block): Call free_packet to skip the packet.
    
    --
    
    Reported-by: Philippe Antoine
    GnuPG-bug-id: 3916
    Signed-off-by: NIIBE Yutaka <[email protected]>

diff --git a/g10/import.c b/g10/import.c
index 73f795c..dbf6000 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -924,6 +924,8 @@ read_block( IOBUF a, int with_meta,
                 add_kbnode (root, new_kbnode (pkt));
               pkt = xmalloc (sizeof *pkt);
             }
+          else
+            free_packet (pkt, &parsectx);
           init_packet(pkt);
           break;
         }

-----------------------------------------------------------------------

Summary of changes:
 g10/import.c | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.