dovecot-2.2: lib-fs: timing_deinit()s was called too late - fs w...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 16 22:34:47 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/a20b72fd97d6
changeset: 19154:a20b72fd97d6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 17 07:33:01 2015 +0900
description:
lib-fs: timing_deinit()s was called too late - fs was already freed.

diffstat:

 src/lib-fs/fs-api.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 7fc709a7b5a5 -r a20b72fd97d6 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c	Thu Sep 17 07:26:49 2015 +0900
+++ b/src/lib-fs/fs-api.c	Thu Sep 17 07:33:01 2015 +0900
@@ -192,11 +192,11 @@
 	i_free(fs->username);
 	i_free(fs->session_id);
 	i_free(fs->temp_path_prefix);
+	for (i = 0; i < FS_OP_COUNT; i++)
+		timing_deinit(&fs->stats.timings[i]);
 	T_BEGIN {
 		fs->v.deinit(fs);
 	} T_END;
-	for (i = 0; i < FS_OP_COUNT; i++)
-		timing_deinit(&fs->stats.timings[i]);
 	array_free_i(&module_contexts_arr);
 	str_free(&last_error);
 }


More information about the dovecot-cvs mailing list