From: Stephan Bosch Date: Thu, 2 Mar 2017 22:51:45 +0000 (+0100) Subject: lib-lda: smtp-client: Fixed cleanup of LMTP client at end of transaction. X-Git-Tag: 2.2.29.rc1~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17084e30a4a316ec2f3a765f5bb4936d65367493;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: smtp-client: Fixed cleanup of LMTP client at end of transaction. It was not deinitialized, causing a memory leak. --- diff --git a/src/lib-lda/smtp-client.c b/src/lib-lda/smtp-client.c index 84bf1bb1a3..351209b676 100644 --- a/src/lib-lda/smtp-client.c +++ b/src/lib-lda/smtp-client.c @@ -304,6 +304,7 @@ smtp_client_send_flush(struct smtp_client *client, if (!client->finished) io_loop_run(ioloop); + lmtp_client_deinit(&lmtp_client); io_loop_destroy(&ioloop); if (client->success)