diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-12 10:06:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-12 10:06:39 +0100 |
commit | cb3a94c63d1d9f39d4bd1f1dbe0c744f6f85ede5 (patch) | |
tree | 5d542ff7f2db3ff8722b90a1150aca1f3e3b35bc /src/lua | |
parent | 1ef680311f90018518d43bae992f1aacb5ae9222 (diff) | |
download | rspamd-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.c | 4 |
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 |