summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsieve/sieve.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsieve/sieve.y b/libsieve/sieve.y
index 7ec7a9de1..d767510e4 100644
--- a/libsieve/sieve.y
+++ b/libsieve/sieve.y
@@ -351,7 +351,6 @@ sieve_machine_init (sieve_machine_t *pmach, void *data)
free (mach);
return 1;
}
- list_append (mach->memory_pool, mach);
mach->data = data;
mach->error_printer = _sieve_default_error_printer;
@@ -478,10 +477,10 @@ void
sieve_machine_destroy (sieve_machine_t *pmach)
{
sieve_machine_t mach = *pmach;
+ mailer_destroy (&mach->mailer);
list_do (mach->destr_list, _run_destructor, NULL);
list_destroy (&mach->destr_list);
sieve_slist_destroy (&mach->memory_pool);
- mailer_destroy (&mach->mailer);
free (mach);
*pmach = NULL;
}

Return to:

Send suggestions and report system problems to the System administrator.