[Pkg-gnupg-commit] [gnupg2] 101/185: dirmngr: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 7 11:55:25 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 3d670fa973a03ea88b5f9459b3222a951136dd7a
Author: Justus Winter <justus at g10code.com>
Date:   Tue Jul 18 13:39:29 2017 +0200

    dirmngr: Fix memory leak.
    
    * dirmngr/http.c (http_release_parsed_uri): Free 'params'.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 dirmngr/http.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dirmngr/http.c b/dirmngr/http.c
index 0544c9b..3baa53a 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -1255,6 +1255,11 @@ http_release_parsed_uri (parsed_uri_t uri)
     {
       uri_tuple_t r, r2;
 
+      for (r = uri->params; r; r = r2)
+	{
+	  r2 = r->next;
+	  xfree (r);
+	}
       for (r = uri->query; r; r = r2)
 	{
 	  r2 = r->next;

-- 
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