dovecot-2.2: fts-solr: Fixed memory leak when indexing multiple ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 18 20:08:05 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/9765b87823df
changeset: 18970:9765b87823df
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 18 23:07:19 2015 +0300
description:
fts-solr: Fixed memory leak when indexing multiple mailboxes in one update context.
diffstat:
src/plugins/fts-solr/fts-backend-solr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a08e79a3707f -r 9765b87823df src/plugins/fts-solr/fts-backend-solr.c
--- a/src/plugins/fts-solr/fts-backend-solr.c Tue Aug 18 23:02:01 2015 +0300
+++ b/src/plugins/fts-solr/fts-backend-solr.c Tue Aug 18 23:07:19 2015 +0300
@@ -468,7 +468,8 @@
if (ctx->post == NULL) {
i_assert(ctx->prev_uid == 0);
- ctx->cmd = str_new(default_pool, SOLR_CMDBUF_SIZE);
+ if (ctx->cmd == NULL)
+ ctx->cmd = str_new(default_pool, SOLR_CMDBUF_SIZE);
ctx->post = solr_connection_post_begin(backend->solr_conn);
str_append(ctx->cmd, "<add>");
} else {
More information about the dovecot-cvs
mailing list