]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Fix memory leak in auth_client_request_abort()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 18 Dec 2017 14:50:51 +0000 (16:50 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 30 Jan 2018 07:41:18 +0000 (09:41 +0200)
This caused memory leaks when authentication was aborted. For example
with IMAP:

a AUTHENTICATE PLAIN
*

Broken by 9137c55411aa39d41c1e705ddc34d5bd26c65021

src/lib-auth/auth-client-request.c

index 743b46b92850dcd63a5fce7d547ca2fda47c2623..fb2e5ddbb59db97a4cc424be24fd113b815a82ce 100644 (file)
@@ -180,6 +180,7 @@ void auth_client_request_abort(struct auth_client_request **_request)
 
        auth_client_send_cancel(request->conn->client, request->id);
        call_callback(request, AUTH_REQUEST_STATUS_ABORT, NULL, NULL);
+       pool_unref(&request->pool);
 }
 
 unsigned int auth_client_request_get_id(struct auth_client_request *request)