gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: test_get_chunked: fixed leak of l


From: gnunet
Subject: [libmicrohttpd] branch master updated: test_get_chunked: fixed leak of libcurl resource for "close" mode
Date: Mon, 16 Aug 2021 13:54:06 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 303d42fd test_get_chunked: fixed leak of libcurl resource for "close" 
mode
303d42fd is described below

commit 303d42fdcd8f029f4bf3cfb6401aec407c1626f4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Aug 16 14:50:22 2021 +0300

    test_get_chunked: fixed leak of libcurl resource for "close" mode
---
 src/testcurl/test_get_chunked.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 7e29d342..eeb4228c 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -701,20 +701,22 @@ testExternalGet ()
         curl_multi_remove_handle (multi, c);
         curl_multi_cleanup (multi);
         curl_easy_cleanup (c);
+        curl_slist_free_all (h_list);
+        h_list = NULL;
         c = NULL;
         multi = NULL;
       }
     }
     MHD_run (d);
   }
+  MHD_stop_daemon (d);
   if (multi != NULL)
   {
     curl_multi_remove_handle (multi, c);
     curl_easy_cleanup (c);
     curl_multi_cleanup (multi);
-    curl_slist_free_all (h_list);
   }
-  MHD_stop_daemon (d);
+  curl_slist_free_all (h_list);
   if (1 != hdr_check.found_chunked)
   {
     fprintf (stderr,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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