gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: test_toolarge: fixed leak of the


From: gnunet
Subject: [libmicrohttpd] branch master updated: test_toolarge: fixed leak of the test memory allocation
Date: Sun, 03 Oct 2021 19:43:37 +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 9d6c3ded test_toolarge: fixed leak of the test memory allocation
9d6c3ded is described below

commit 9d6c3deddb486f4c949f5bedbc4695c4c05cae96
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 3 20:43:20 2021 +0300

    test_toolarge: fixed leak of the test memory allocation
---
 src/testcurl/test_toolarge.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c
index 30f9009d..74cd3b4c 100644
--- a/src/testcurl/test_toolarge.c
+++ b/src/testcurl/test_toolarge.c
@@ -786,17 +786,17 @@ doCurlQueryInThread (struct MHD_Daemon *d,
                resp_code);
       mhdErrorExit ();
     }
-
-    return p->queryError;
   }
-
-  if (dcbp.pos != expected_data_size)
-    mhdErrorExit ("libcurl reports wrong size of MHD reply body data");
-  else if (0 != memcmp (expected_data, dcbp.buf,
-                        expected_data_size))
-    mhdErrorExit ("libcurl reports wrong MHD reply body data");
   else
-    p->queryError = 0;
+  {
+    if (dcbp.pos != expected_data_size)
+      mhdErrorExit ("libcurl reports wrong size of MHD reply body data");
+    else if (0 != memcmp (expected_data, dcbp.buf,
+                          expected_data_size))
+      mhdErrorExit ("libcurl reports wrong MHD reply body data");
+    else
+      p->queryError = 0;
+  }
 
   curl_easy_cleanup (c);
   free (dcbp.buf);

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