[git] GPGME - branch, master, updated. gpgme-1.11.1-99-g98a75a1

by Andre Heinecke cvs at cvs.gnupg.org
Wed Jul 18 13:15:57 CEST 2018


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 "GnuPG Made Easy".

The branch, master has been updated
       via  98a75a16ccdfe51799a27894d2eb26dba04b34f2 (commit)
      from  6d7b4382c3e12ba1dbbd0762dfa850c76750d838 (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 98a75a16ccdfe51799a27894d2eb26dba04b34f2
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Jul 18 13:15:02 2018 +0200

    json: Fix memleak in native msging repl
    
    * src/gpgme-json.c (native_messaging_repl): Free request and
    response after each loop.
    
    --
    If we only accept once request we should not loop. If we loop
    we should do it properly.

diff --git a/src/gpgme-json.c b/src/gpgme-json.c
index 74ca2b6..cc3abfe 100644
--- a/src/gpgme-json.c
+++ b/src/gpgme-json.c
@@ -3665,6 +3665,10 @@ native_messaging_repl (void)
           log_error ("error writing request: %s\n", gpg_strerror (err));
           break;
         }
+      xfree (response);
+      response = NULL;
+      xfree (request);
+      request = NULL;
     }
 
   xfree (response);

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

Summary of changes:
 src/gpgme-json.c | 4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list