[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: test_tricky: fixed leaked resourc
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: test_tricky: fixed leaked resource |
Date: |
Sun, 17 Oct 2021 18:31:22 +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 bbca0b65 test_tricky: fixed leaked resource
bbca0b65 is described below
commit bbca0b654ba921247aa79e02ea43e5f5e1e57496
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 17 19:31:08 2021 +0300
test_tricky: fixed leaked resource
---
src/testcurl/test_tricky.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/testcurl/test_tricky.c b/src/testcurl/test_tricky.c
index d2f5b6d1..039ef009 100644
--- a/src/testcurl/test_tricky.c
+++ b/src/testcurl/test_tricky.c
@@ -753,9 +753,11 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
if (tricky_url)
{
#if CURL_AT_LEAST_VERSION (7, 62, 0)
- qParam.url = curl_url ();
- if (NULL == qParam.url)
+ CURLU *url;
+ url = curl_url ();
+ if (NULL == url)
externalErrorExit ();
+ qParam.url = url;
if ((CURLUE_OK != curl_url_set (qParam.url, CURLUPART_SCHEME, "http", 0))
||
(CURLUE_OK != curl_url_set (qParam.url, CURLUPART_HOST, URL_HOST,
@@ -811,7 +813,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
if (! ahc_param->header_check_param.found_header4)
mhdErrorExitDesc ("Required header4 was not detected in request");
}
-
+ curl_url_cleanup (url);
#else
fprintf (stderr, "This test requires libcurl version 7.62.0 or newer.\n");
abort ();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: test_tricky: fixed leaked resource,
gnunet <=