]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: smtp-client: Fixed cleanup of LMTP client at end of transaction.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 2 Mar 2017 22:51:45 +0000 (23:51 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 09:39:44 +0000 (12:39 +0300)
It was not deinitialized, causing a memory leak.

src/lib-lda/smtp-client.c

index 84bf1bb1a36bb80e71357eb29ef409cb44687d4f..351209b6764d258731880e1e71f18260ca96dc20 100644 (file)
@@ -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)