dovecot-2.1: ioloop: Memory leak fix on ioloop destroy.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 2 16:28:02 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/f41a3dd03be2
changeset: 13579:f41a3dd03be2
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 02 16:33:51 2011 +0300
description:
ioloop: Memory leak fix on ioloop destroy.
diffstat:
src/lib/ioloop.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 7f7724f28d78 -r f41a3dd03be2 src/lib/ioloop.c
--- a/src/lib/ioloop.c Sun Oct 02 16:32:59 2011 +0300
+++ b/src/lib/ioloop.c Sun Oct 02 16:33:51 2011 +0300
@@ -474,6 +474,9 @@
if (ioloop->handler_context != NULL)
io_loop_handler_deinit(ioloop);
+ if (ioloop->cur_ctx != NULL)
+ io_loop_context_deactivate(ioloop->cur_ctx);
+
/* ->prev won't work unless loops are destroyed in create order */
i_assert(ioloop == current_ioloop);
current_ioloop = current_ioloop->prev;
More information about the dovecot-cvs
mailing list