]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: smtp-client: Fixed memory leak of the error message string.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 2 Mar 2017 22:12:45 +0000 (23:12 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 3 Mar 2017 23:30:55 +0000 (00:30 +0100)
src/lib-lda/smtp-client.c

index 313abff90b5e5a1706736cdcca043671f8c9a1e8..b1e83f3629b042644a9d1157426c962eae98ddee 100644 (file)
@@ -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);
        }
 }