aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-11 18:16:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-11 18:16:30 +0100
commit175af8560511cba02d2ea2cb3af78403cba458d9 (patch)
tree4b1a7447c01901adc1532144c277ab268a2ae274 /src/libmime
parentfaa4da7362c51bd63e6bc294564b76dd696de4c1 (diff)
downloadrspamd-175af8560511cba02d2ea2cb3af78403cba458d9.tar.gz
rspamd-175af8560511cba02d2ea2cb3af78403cba458d9.zip
[Minor] Plug utexts leak
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 0d4581ad7..f0a235a4c 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -504,6 +504,11 @@ rspamd_normalize_text_part (struct rspamd_task *task,
msg_warn_task ("cannot open text from utf content");
/* Probably, should be an assertion */
}
+ else {
+ rspamd_mempool_add_destructor (task->task_pool,
+ (rspamd_mempool_destruct_t)utext_close,
+ &part->utf_stripped_text);
+ }
}
rspamd_mempool_add_destructor (task->task_pool,