aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-12 10:06:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-12 10:06:39 +0100
commitcb3a94c63d1d9f39d4bd1f1dbe0c744f6f85ede5 (patch)
tree5d542ff7f2db3ff8722b90a1150aca1f3e3b35bc /src/lua
parent1ef680311f90018518d43bae992f1aacb5ae9222 (diff)
downloadrspamd-cb3a94c63d1d9f39d4bd1f1dbe0c744f6f85ede5.tar.gz
rspamd-cb3a94c63d1d9f39d4bd1f1dbe0c744f6f85ede5.zip
[Minor] Oops, fix another case of dtors
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_regexp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 764bb6de1..c0458a876 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -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