]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix memory leak when deinitializing mailbox list
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 29 Jun 2026 07:05:11 +0000 (10:05 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 29 Jun 2026 07:05:11 +0000 (10:05 +0300)
Broken by c2aa2d2223cceab5ece02fb472f13a2b7ee4b52a

src/lib-storage/list/mailbox-list-index.c

index cb669a13f03fed71427d7e1b59426f9ec1ee4de5..9a102d69f13964cea61a59fe777f888ecc3ec62f 100644 (file)
@@ -1108,6 +1108,7 @@ static void mailbox_list_index_deinit(struct mailbox_list *list)
        if (ilist->index != NULL) {
                hash_table_destroy(&ilist->mailbox_hash);
                hash_table_destroy(&ilist->mailbox_names);
+               hash_table_destroy(&ilist->mailbox_storage_name_hash);
                pool_unref(&ilist->mailbox_pool);
                if (ilist->opened)
                        mail_index_close(ilist->index);