summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
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,