From: Vsevolod Stakhov Date: Fri, 23 Dec 2016 00:23:54 +0000 (+0000) Subject: [Minor] Do not remove not owned mempool X-Git-Tag: 1.5.0~498 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c065374f689cd970392530b25b213ad0692a93f9;p=rspamd.git [Minor] Do not remove not owned mempool --- diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 923713783..95471601b 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1073,7 +1073,9 @@ lua_util_parse_addr (lua_State *L) lua_push_emails_address_list (L, addrs); } - rspamd_mempool_delete (pool); + if (own_pool) { + rspamd_mempool_delete (pool); + } } else { lua_pushnil (L); @@ -1251,7 +1253,9 @@ lua_util_parse_mail_address (lua_State *L) lua_push_emails_address_list (L, addrs); } - rspamd_mempool_delete (pool); + if (own_pool) { + rspamd_mempool_delete (pool); + } } else { lua_pushnil (L);