[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix leaks in testcas
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix leaks in testcase |
Date: |
Tue, 27 Feb 2018 23:38:12 +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 e0f31168 fix leaks in testcase
e0f31168 is described below
commit e0f31168f1232aabfbe667e8b846d12e06ec182d
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Feb 27 23:38:10 2018 +0100
fix leaks in testcase
---
src/testcurl/test_put_chunked.c | 2 ++
src/testzzuf/test_long_header.c | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c
index 479079fb..71e10b77 100644
--- a/src/testcurl/test_put_chunked.c
+++ b/src/testcurl/test_put_chunked.c
@@ -104,6 +104,8 @@ ahc_echo (void *cls,
printf ("Invalid upload data `%8s'!\n", upload_data);
return MHD_NO;
}
+ if (0 == have)
+ return MHD_YES;
if (0 == memcmp (upload_data, &"Hello123"[*done], have))
{
*done += have;
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c
index c4e5cf81..fd0598f1 100644
--- a/src/testzzuf/test_long_header.c
+++ b/src/testzzuf/test_long_header.c
@@ -145,12 +145,12 @@ testLongUrlGet ()
curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
curl_easy_perform (c);
curl_easy_cleanup (c);
+ free (url);
}
fprintf (stderr, "\n");
zzuf_socat_stop ();
MHD_stop_daemon (d);
- free (url);
return 0;
}
@@ -210,12 +210,12 @@ testLongHeaderGet ()
curl_slist_free_all (header);
header = NULL;
curl_easy_cleanup (c);
+ free (url);
}
fprintf (stderr, "\n");
zzuf_socat_stop ();
MHD_stop_daemon (d);
- free (url);
return 0;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: fix leaks in testcase,
gnunet <=