dovecot-2.2: pop3c: Memory leak fixes
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 19 21:26:01 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/369d8e994372
changeset: 17071:369d8e994372
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 19 21:25:28 2013 +0200
description:
pop3c: Memory leak fixes
diffstat:
src/lib-storage/index/pop3c/pop3c-client.c | 1 +
src/lib-storage/index/pop3c/pop3c-storage.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r f5e51a926542 -r 369d8e994372 src/lib-storage/index/pop3c/pop3c-client.c
--- a/src/lib-storage/index/pop3c/pop3c-client.c Thu Dec 19 21:25:08 2013 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-client.c Thu Dec 19 21:25:28 2013 +0200
@@ -762,6 +762,7 @@
client->dot_input =
i_stream_create_seekable(inputs, POP3C_MAX_INBUF_SIZE,
seekable_fd_callback, client);
+ i_stream_unref(&inputs[0]);
i_assert(client->io == NULL);
client->io = io_add(client->fd, IO_READ,
diff -r f5e51a926542 -r 369d8e994372 src/lib-storage/index/pop3c/pop3c-storage.c
--- a/src/lib-storage/index/pop3c/pop3c-storage.c Thu Dec 19 21:25:08 2013 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-storage.c Thu Dec 19 21:25:28 2013 +0200
@@ -185,7 +185,8 @@
if (mbox->uidl_pool != NULL)
pool_unref(&mbox->uidl_pool);
- i_free(mbox->msg_sizes);
+ i_free_and_null(mbox->msg_uids);
+ i_free_and_null(mbox->msg_sizes);
pop3c_client_deinit(&mbox->client);
index_storage_mailbox_close(box);
}
More information about the dovecot-cvs
mailing list