dovecot-2.2: Memory leak fix
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 20 11:09:52 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/963482677c0b
changeset: 14928:963482677c0b
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 13 07:26:25 2012 +0300
description:
Memory leak fix
diffstat:
src/lib/ioloop.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r cc5f888d466a -r 963482677c0b src/lib/ioloop.c
--- a/src/lib/ioloop.c Fri Aug 10 07:31:28 2012 +0300
+++ b/src/lib/ioloop.c Mon Aug 13 07:26:25 2012 +0300
@@ -357,7 +357,7 @@
(void *)timeout->callback);
}
if (ioloop->cur_ctx != NULL)
- io_loop_context_activate(ioloop->cur_ctx);
+ io_loop_context_deactivate(ioloop->cur_ctx);
}
}
@@ -594,6 +594,8 @@
{
const struct ioloop_context_callback *cb;
+ i_assert(ctx->ioloop->cur_ctx == NULL);
+
ctx->ioloop->cur_ctx = ctx;
io_loop_context_ref(ctx);
array_foreach(&ctx->callbacks, cb) {
More information about the dovecot-cvs
mailing list