[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: -fix memory leaks in tests
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: -fix memory leaks in tests |
Date: |
Tue, 07 Jun 2022 17:29:27 +0200 |
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 4720ace1 -fix memory leaks in tests
4720ace1 is described below
commit 4720ace1a7d9b5cc83f9d3adceda12443d106c24
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 7 17:29:24 2022 +0200
-fix memory leaks in tests
---
src/testcurl/test_long_header.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c
index 329c3955..e7450d92 100644
--- a/src/testcurl/test_long_header.c
+++ b/src/testcurl/test_long_header.c
@@ -142,8 +142,9 @@ testLongUrlGet (size_t buff_size)
}
c = curl_easy_init ();
url = malloc (VERY_LONG);
- if (url == NULL)
+ if (NULL == url)
{
+ curl_easy_cleanup (c);
MHD_stop_daemon (d);
return 1;
}
@@ -235,8 +236,9 @@ testLongHeaderGet (size_t buff_size)
}
c = curl_easy_init ();
url = malloc (VERY_LONG);
- if (url == NULL)
+ if (NULL == url)
{
+ curl_easy_cleanup (c);
MHD_stop_daemon (d);
return 16;
}
--
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 memory leaks in tests,
gnunet <=