Skip to content

Commit

Permalink
lib-auth: Fix memory leak in auth_client_request_abort()
Browse files Browse the repository at this point in the history
This caused memory leaks when authentication was aborted. For example
with IMAP:

a AUTHENTICATE PLAIN
*

Broken by 9137c55
  • Loading branch information
sirainen authored and villesavolainen committed Jan 30, 2018
1 parent c1398e6 commit a008617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-auth/auth-client-request.c
Expand Up @@ -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)
Expand Down

0 comments on commit a008617

Please sign in to comment.