From 244315dce16f26a2acec8e1cd1ed21bda860fa97 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 28 Jul 2016 13:21:18 +0100 Subject: [PATCH] [Fix] Avoid crash when closing mmapped file --- src/libstat/backends/mmaped_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c index 75a9a5e10..86538039d 100644 --- a/src/libstat/backends/mmaped_file.c +++ b/src/libstat/backends/mmaped_file.c @@ -631,9 +631,8 @@ rspamd_mmaped_file_open (rspamd_mempool_t *pool, } rspamd_file_unlock (new_file->fd, FALSE); - new_file->cf = stcf; - + new_file->pool = pool; rspamd_mmaped_file_preload (new_file); g_assert (stcf->clcf != NULL); -- 2.39.5