From f411d46ff24dc2bcc18fd2ea29f1f16612fc676d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 22 Jan 2009 18:42:50 +0300 Subject: * Rework statfiles result processing * Fix small bug in protocol implementation (\r -> \r\n) --- src/worker.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/worker.c') diff --git a/src/worker.c b/src/worker.c index 809adddda..bed6e3d91 100644 --- a/src/worker.c +++ b/src/worker.c @@ -230,6 +230,8 @@ accept_socket (int fd, short what, void *arg) new_task->task_pool = memory_pool_new (memory_pool_get_size ()); /* Add destructor for recipients list (it would be better to use anonymous function here */ memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func)rcpt_destruct, new_task); + new_task->results = g_hash_table_new (g_str_hash, g_str_equal); + memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func)g_hash_table_destroy, new_task->results); worker->srv->stat->connections_count ++; /* Read event */ -- cgit v1.2.3