Mercurial > dovecot > core-2.2
changeset 22243:72574d93be61
lib-lda: Fix memory leak in smtp_client_open()
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 19 Jun 2017 09:22:56 +0300 |
parents | 589993f80eda |
children | 9be64b864597 |
files | src/lib-lda/smtp-client.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-lda/smtp-client.c Fri Jun 16 14:34:24 2017 +0300 +++ b/src/lib-lda/smtp-client.c Mon Jun 19 09:22:56 2017 +0300 @@ -162,7 +162,7 @@ if ((fd = create_temp_file(&path)) == -1) return o_stream_create_error(errno); - client->temp_path = i_strdup(path); + client->temp_path = p_strdup(client->pool, path); client->temp_fd = fd; client->output = o_stream_create_fd_autoclose(&fd, IO_BLOCK_SIZE); o_stream_set_no_error_handling(client->output, TRUE);