]> source.dussan.org Git - rspamd.git/commitdiff
* Delete pool after using its variables
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 25 Jun 2010 06:54:18 +0000 (10:54 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 25 Jun 2010 06:54:18 +0000 (10:54 +0400)
src/smtp.c

index 1b95a52bb2adc11d0e16b572722a88b205a1d97c..785d63b780c97324bfb46a1a916da8ee1e47baf1 100644 (file)
@@ -92,7 +92,6 @@ free_smtp_session (gpointer arg)
                if (session->dispatcher) {
                        rspamd_remove_dispatcher (session->dispatcher);
                }
-               memory_pool_delete (session->pool);
                close (session->sock);
                if (session->temp_name != NULL) {
                        unlink (session->temp_name);
@@ -100,6 +99,7 @@ free_smtp_session (gpointer arg)
                if (session->temp_fd != -1) {
                        close (session->temp_fd);
                }
+               memory_pool_delete (session->pool);
                g_free (session);
        }
 }