diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 18:16:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 18:16:30 +0100 |
commit | 175af8560511cba02d2ea2cb3af78403cba458d9 (patch) | |
tree | 4b1a7447c01901adc1532144c277ab268a2ae274 /src/libmime | |
parent | faa4da7362c51bd63e6bc294564b76dd696de4c1 (diff) | |
download | rspamd-175af8560511cba02d2ea2cb3af78403cba458d9.tar.gz rspamd-175af8560511cba02d2ea2cb3af78403cba458d9.zip |
[Minor] Plug utexts leak
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 5 |
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, |