gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: curl: fix memory leak in er


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: curl: fix memory leak in error handling
Date: Sun, 12 May 2019 19:02:00 +0200

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

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new d11bcece8 curl: fix memory leak in error handling
d11bcece8 is described below

commit d11bcece8423f034ae262c7c7cffc83ada39473a
Author: Florian Dold <address@hidden>
AuthorDate: Sun May 12 19:01:36 2019 +0200

    curl: fix memory leak in error handling
---
 src/curl/curl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/curl/curl.c b/src/curl/curl.c
index bc01dbc6c..40e04a9af 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -322,6 +322,8 @@ GNUNET_CURL_job_add (struct GNUNET_CURL_Context *ctx,
   if (CURLE_OK != curl_easy_setopt (eh, CURLOPT_HTTPHEADER, all_headers))
   {
     GNUNET_break (0);
+    curl_slist_free_all (all_headers);
+    GNUNET_free_non_null (aid_header);
     curl_easy_cleanup (eh);
     return NULL;
   }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]