From: Stephan Bosch Date: Thu, 2 Mar 2017 22:12:45 +0000 (+0100) Subject: lib-lda: smtp-client: Fixed memory leak of the error message string. X-Git-Tag: 2.3.0.rc1~1970 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb12dd3a1da1fac17484e36963554f538bcd3683;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: smtp-client: Fixed memory leak of the error message string. --- diff --git a/src/lib-lda/smtp-client.c b/src/lib-lda/smtp-client.c index 313abff90b..b1e83f3629 100644 --- a/src/lib-lda/smtp-client.c +++ b/src/lib-lda/smtp-client.c @@ -85,7 +85,8 @@ smtp_client_error(struct smtp_client *client, { if (client->error == NULL) { client->tempfail = tempfail; - client->error = i_strdup_printf("smtp(%s): %s", + client->error = p_strdup_printf(client->pool, + "smtp(%s): %s", client->set->submission_host, error); } }