From: Timo Sirainen Date: Sun, 6 Jul 2003 22:59:31 +0000 (+0300) Subject: call index deinit properly X-Git-Tag: 1.1.alpha1~4505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ee79143725115dd31523eede789a9ee32ace44e;p=thirdparty%2Fdovecot%2Fcore.git call index deinit properly --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-storage.c b/src/lib-storage/index/mbox/mbox-storage.c index a639ef2cfe..af6648d53a 100644 --- a/src/lib-storage/index/mbox/mbox-storage.c +++ b/src/lib-storage/index/mbox/mbox-storage.c @@ -192,11 +192,14 @@ static struct mail_storage *mbox_create(const char *data, const char *user) storage->index_dir = i_strdup(home_expand(index_dir)); storage->user = i_strdup(user); storage->callbacks = i_new(struct mail_storage_callbacks, 1); + index_storage_init(storage); return storage; } static void mbox_free(struct mail_storage *storage) { + index_storage_deinit(storage); + i_free(storage->dir); i_free(storage->inbox_file); i_free(storage->index_dir);