]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] More places where utext_close is required
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Sep 2018 10:04:54 +0000 (11:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Sep 2018 10:04:54 +0000 (11:04 +0100)
src/libstat/stat_process.c
src/lua/lua_util.c

index 6d34ba51c814e5ae99165a8ebdc27d64ad559b7c..ca51d7b0232e760b501847ddb9108638f8f1ce8e 100644 (file)
@@ -394,6 +394,8 @@ rspamd_stat_process_tokenize (struct rspamd_stat_ctx *st_ctx,
                        rspamd_mempool_add_destructor (task->task_pool,
                                        rspamd_array_free_hard, words);
                }
+
+               utext_close (&utxt);
        }
 
        rspamd_stat_tokenize_parts_metadata (st_ctx, task);
index d6095ab52c649825a4b64c4405ec2ee30b6f0488..925cb07cad6980277edd40999e314932d7a2ce19 100644 (file)
@@ -1163,6 +1163,7 @@ lua_util_tokenize_text (lua_State *L)
        }
 
        g_list_free (exceptions);
+       utext_close (&utxt);
 
        return 1;
 }