aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-04 11:46:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-04 12:06:18 +0100
commit5e59527bb11dfd2e5a9c439c6957cf6e9df57256 (patch)
tree781dfbe289c1c1a491bbb4fbb09d91b57b643728 /src/libserver/task.c
parent59354af039ce15c7160b43095acf5b380a59ecbe (diff)
downloadrspamd-5e59527bb11dfd2e5a9c439c6957cf6e9df57256.tar.gz
rspamd-5e59527bb11dfd2e5a9c439c6957cf6e9df57256.zip
[Minor] Explicitly set queue to NULL for top part
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index d2313afd7..95e682eed 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -212,7 +212,9 @@ rspamd_task_free (struct rspamd_task *task)
g_hash_table_unref (p->raw_headers);
}
- g_queue_free (p->headers_order);
+ if (p->headers_order) {
+ g_queue_free (p->headers_order);
+ }
if (IS_CT_MULTIPART (p->ct)) {
if (p->specific.mp.children) {