aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-19 20:26:17 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-19 20:26:17 +0000
commite7cd19c3419eaf2c8ed6a4b9b4749836915b8edb (patch)
tree4c8402e9c94b194e256c68f611500bbef4881bd9
parentc9d068253d379fcbfc5102c3ca772d96f8bc2581 (diff)
downloadlibmicrohttpd-e7cd19c3419eaf2c8ed6a4b9b4749836915b8edb.tar.gz
libmicrohttpd-e7cd19c3419eaf2c8ed6a4b9b4749836915b8edb.zip
-fix leak fix
-rw-r--r--src/testcurl/test_post.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index acc97e77..31fd16a2 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -57,7 +57,7 @@ completed_cb (void *cls,
57 struct MHD_PostProcessor *pp = *con_cls; 57 struct MHD_PostProcessor *pp = *con_cls;
58 58
59 if (NULL != pp) 59 if (NULL != pp)
60 MHD_destroy_post_processor (pp); 60 MHD_destroy_post_processor (pp);
61 *con_cls = NULL; 61 *con_cls = NULL;
62} 62}
63 63
@@ -100,6 +100,7 @@ post_iterator (void *cls,
100 return MHD_YES; 100 return MHD_YES;
101} 101}
102 102
103
103static int 104static int
104ahc_echo (void *cls, 105ahc_echo (void *cls,
105 struct MHD_Connection *connection, 106 struct MHD_Connection *connection,
@@ -433,6 +434,7 @@ testExternalPost ()
433 return 0; 434 return 0;
434} 435}
435 436
437
436static int 438static int
437ahc_cancel (void *cls, 439ahc_cancel (void *cls,
438 struct MHD_Connection *connection, 440 struct MHD_Connection *connection,
@@ -508,6 +510,7 @@ slowReadBuffer(void *p, size_t size, size_t nmemb, void *opaque)
508#define FLAG_SLOW_READ 8 510#define FLAG_SLOW_READ 8
509#define FLAG_COUNT 16 511#define FLAG_COUNT 16
510 512
513
511static int 514static int
512testMultithreadedPostCancelPart(int flags) 515testMultithreadedPostCancelPart(int flags)
513{ 516{
@@ -532,7 +535,6 @@ testMultithreadedPostCancelPart(int flags)
532 cbc.pos = 0; 535 cbc.pos = 0;
533 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 536 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG,
534 1081, NULL, NULL, &ahc_cancel, NULL, 537 1081, NULL, NULL, &ahc_cancel, NULL,
535 MHD_OPTION_NOTIFY_COMPLETED, &completed_cb, NULL,
536 MHD_OPTION_END); 538 MHD_OPTION_END);
537 if (d == NULL) 539 if (d == NULL)
538 return 32768; 540 return 32768;