dovecot-2.2: cassandra: Commit failures returned an already free...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 13 13:48:46 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/47fa4a6c6b9a
changeset: 18848:47fa4a6c6b9a
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 13 16:46:06 2015 +0300
description:
cassandra: Commit failures returned an already freed error string.

diffstat:

 src/lib-sql/driver-cassandra.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d766dbdf871c -r 47fa4a6c6b9a src/lib-sql/driver-cassandra.c
--- a/src/lib-sql/driver-cassandra.c	Sat Jun 13 15:10:23 2015 +0300
+++ b/src/lib-sql/driver-cassandra.c	Sat Jun 13 16:46:06 2015 +0300
@@ -942,7 +942,7 @@
 
 	if (_ctx->head != NULL)
 		driver_cassandra_try_commit_s(ctx);
-	*error_r = ctx->error;
+	*error_r = t_strdup(ctx->error);
 
 	i_assert(ctx->refcount == 1);
 	i_assert((*error_r != NULL) == ctx->failed);


More information about the dovecot-cvs mailing list