aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-12 12:56:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-12 13:01:28 +0100
commit07027a735d66fecf37193be5babf4b8c4f7e02ac (patch)
treec95820acbcccb7a2a3f41675e7aa382d03f3cd02 /src/fuzzy_storage.c
parenta110835223e98830d677323ec4482fc33fd60c5f (diff)
downloadrspamd-07027a735d66fecf37193be5babf4b8c4f7e02ac.tar.gz
rspamd-07027a735d66fecf37193be5babf4b8c4f7e02ac.zip
[Minor] Fix minor leak in fuzzy storage on exit
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 0636aeff7..a3486635f 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -3013,7 +3013,9 @@ start_fuzzy (struct rspamd_worker *worker)
close (fd);
}
+ }
+ if (worker->index == 0) {
g_array_free (ctx->updates_pending, TRUE);
}