]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix minor leak in fuzzy storage on exit
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 Sep 2018 11:56:39 +0000 (12:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 Sep 2018 12:01:28 +0000 (13:01 +0100)
src/fuzzy_storage.c

index 0636aeff7053bec0dee3db3e6c9589361ef01154..a3486635f0da3ddcb48dd381d238704b3cb9bdd9 100644 (file)
@@ -3013,7 +3013,9 @@ start_fuzzy (struct rspamd_worker *worker)
 
                        close (fd);
                }
+       }
 
+       if (worker->index == 0) {
                g_array_free (ctx->updates_pending, TRUE);
        }