[git] GnuPG - branch, master, updated. gnupg-2.1.13-136-gacb2791

by Werner Koch cvs at cvs.gnupg.org
Tue Jul 12 23:07:09 CEST 2016


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  acb27915f8646a875b6bb507ff46cd1bc330c02b (commit)
      from  38eb5f81d223616e3ee34bdfb41c387ce4e7df22 (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 acb27915f8646a875b6bb507ff46cd1bc330c02b
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Jul 12 23:04:39 2016 +0200

    g13: Fix memleak.
    
    * g13/g13tuple.c (create_tupledesc): Init refcount to 1.
    --
    
    The old code somehow assumed that calloc was used.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g13/g13tuple.c b/g13/g13tuple.c
index fc6644c..ddcb467 100644
--- a/g13/g13tuple.c
+++ b/g13/g13tuple.c
@@ -114,7 +114,7 @@ create_tupledesc (tupledesc_t *r_desc, void *data, size_t datalen)
   (*r_desc)->data = data;
   (*r_desc)->datalen = datalen;
   (*r_desc)->pos = 0;
-  (*r_desc)->refcount++;
+  (*r_desc)->refcount = 1;
   return 0;
 }
 

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

Summary of changes:
 g13/g13tuple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list