]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-client: Callback is not called for explicitly aborted requests.
authorStephan Bosch <stephan@dovecot.fi>
Mon, 23 May 2016 01:16:07 +0000 (03:16 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 20 Jun 2016 00:25:14 +0000 (03:25 +0300)
Test request context was not freed in that case.

src/lib-http/test-http-client.c

index 883cf52ddbb3a342aa66372e9de05ff719d8445d..3b3a26c156c465889b4462ad922dcd405491d279 100644 (file)
@@ -182,6 +182,7 @@ static void run_tests(struct http_client *http_client)
        http_client_request_set_ssl(http_req, TRUE);
        http_client_request_submit(http_req);
        http_client_request_abort(&http_req);
+       i_free(test_req);
 
        test_req = i_new(struct http_test_request, 1);
        http_req = http_client_request(http_client,