]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Avoid double free
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 17:34:43 +0000 (17:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 17:34:43 +0000 (17:34 +0000)
src/libserver/worker_util.c

index 1cdea22c8c4334962f02b447daa217e6d1447a58..97708b464587e3999e32b94a556667630c1b5954 100644 (file)
@@ -356,6 +356,8 @@ rspamd_worker_stop_accept (struct rspamd_worker *worker)
                if (map->dtor) {
                        map->dtor (map->dtor_data);
                }
+
+               map->dtor = NULL;
        }
 }