gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: fix leak in test_qui


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: fix leak in test_quiesce_stream
Date: Tue, 27 Feb 2018 23:33:05 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 17a03444 fix leak in test_quiesce_stream
17a03444 is described below

commit 17a0344495fc8fd3a12077b5f98fcd380c621268
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Feb 27 23:33:04 2018 +0100

    fix leak in test_quiesce_stream
---
 src/testcurl/test_quiesce_stream.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/testcurl/test_quiesce_stream.c 
b/src/testcurl/test_quiesce_stream.c
index f908545a..5d80ee70 100644
--- a/src/testcurl/test_quiesce_stream.c
+++ b/src/testcurl/test_quiesce_stream.c
@@ -122,6 +122,15 @@ http_ContentReaderCallback (void *cls,
 }
 
 
+static void
+free_crc_data (void *crc_data)
+{
+  struct ContentReaderUserdata *userdata = crc_data;
+
+  free (userdata);
+}
+
+
 static int
 http_AccessHandlerCallback (void *cls,
                             struct MHD_Connection *connection,
@@ -160,7 +169,7 @@ http_AccessHandlerCallback (void *cls,
                                          32 * 1024,
                                          &http_ContentReaderCallback,
                                          *con_cls,
-                                         NULL);
+                                         &free_crc_data);
   ret = MHD_queue_response (connection,
                             MHD_HTTP_OK,
                             response);

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



reply via email to

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