diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-19 20:26:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-19 20:26:17 +0000 |
commit | e7cd19c3419eaf2c8ed6a4b9b4749836915b8edb (patch) | |
tree | 4c8402e9c94b194e256c68f611500bbef4881bd9 | |
parent | c9d068253d379fcbfc5102c3ca772d96f8bc2581 (diff) | |
download | libmicrohttpd-e7cd19c3419eaf2c8ed6a4b9b4749836915b8edb.tar.gz libmicrohttpd-e7cd19c3419eaf2c8ed6a4b9b4749836915b8edb.zip |
-fix leak fix
-rw-r--r-- | src/testcurl/test_post.c | 6 |
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 | |||
103 | static int | 104 | static int |
104 | ahc_echo (void *cls, | 105 | ahc_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 | |||
436 | static int | 438 | static int |
437 | ahc_cancel (void *cls, | 439 | ahc_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 | |||
511 | static int | 514 | static int |
512 | testMultithreadedPostCancelPart(int flags) | 515 | testMultithreadedPostCancelPart(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; |