]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix another case of dtors
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Oct 2019 09:06:39 +0000 (10:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Oct 2019 09:06:39 +0000 (10:06 +0100)
src/lua/lua_regexp.c

index 764bb6de10fa16249099bfe8d5315a38ed4ba691..c0458a8767837bf039b03f40e0e182b5bec90cfa 100644 (file)
@@ -900,5 +900,7 @@ luaopen_regexp (lua_State * L)
 }
 
 RSPAMD_DESTRUCTOR (lua_re_static_pool_dtor) {
-       rspamd_mempool_delete (regexp_static_pool);
+       if (regexp_static_pool) {
+               rspamd_mempool_delete (regexp_static_pool);
+       }
 }
\ No newline at end of file