dovecot-1.0: Fixed a memory leak in ACL plugin.

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 30 20:23:00 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/c706bfebc76e
changeset: 5548:c706bfebc76e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 30 20:22:57 2008 +0300
description:
Fixed a memory leak in ACL plugin.

diffstat:

1 file changed, 2 insertions(+)
src/plugins/acl/acl-cache.c |    2 ++

diffs (12 lines):

diff -r 48bfe0940a07 -r c706bfebc76e src/plugins/acl/acl-cache.c
--- a/src/plugins/acl/acl-cache.c	Thu Apr 24 16:08:26 2008 +0300
+++ b/src/plugins/acl/acl-cache.c	Wed Apr 30 20:22:57 2008 +0300
@@ -63,6 +63,8 @@ void acl_cache_deinit(struct acl_cache *
 	struct acl_cache *cache = *_cache;
 
 	*_cache = NULL;
+
+	acl_cache_flush_all(cache);
 	array_free(&cache->right_idx_name_map);
 	hash_destroy(cache->right_name_idx_map);
 	hash_destroy(cache->objects);


More information about the dovecot-cvs mailing list