[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: fix leak
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: fix leak |
Date: |
Sat, 27 Feb 2021 21:05:31 +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 39813f4f fix leak
39813f4f is described below
commit 39813f4f284c69a7133889e1f295fe422b5bf31a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 27 21:04:09 2021 +0100
fix leak
---
src/testcurl/test_get_iovec.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
index 1d817851..0c58f26f 100644
--- a/src/testcurl/test_get_iovec.c
+++ b/src/testcurl/test_get_iovec.c
@@ -95,14 +95,11 @@ iov_free_callback (void *cls)
static void
iovncont_free_callback (void *cls)
{
- struct MHD_IoVec *iov = (struct MHD_IoVec *) cls;
- int i;
+ struct MHD_IoVec *iov = cls;
+ unsigned int i;
for (i = 0; i < TESTSTR_IOVCNT; ++i)
- {
free (iov[i].iov_base);
- }
-
free (iov);
}
@@ -236,7 +233,9 @@ ncont_echo (void *cls,
TESTSTR_IOVCNT,
&iovncont_free_callback,
iov);
- ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
+ ret = MHD_queue_response (connection,
+ MHD_HTTP_OK,
+ response);
MHD_destroy_response (response);
if (ret == MHD_NO)
abort ();
@@ -248,7 +247,7 @@ err_out:
if (NULL != iov[j].iov_base)
free (iov[j].iov_base);
}
-
+ free (iov);
return MHD_NO;
}
--
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: fix leak,
gnunet <=