]> source.dussan.org Git - rspamd.git/commitdiff
Fix cleaning of rspamd config
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Nov 2015 00:00:54 +0000 (00:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Nov 2015 00:00:54 +0000 (00:00 +0000)
src/rspamadm/rspamadm.c

index d0e1caf8b9e6cefac44fc8477eca67bcc1e73997..04587455fbe14bf94651dcdd830f471eebd888ab 100644 (file)
@@ -315,12 +315,9 @@ main (gint argc, gchar **argv, gchar **env)
        }
 
        rspamd_log_close (rspamd_main->logger);
-       rspamd_config_free (rspamd_main->cfg);
-       g_free (rspamd_main->cfg);
+       REF_RELEASE (rspamd_main->cfg);
        g_free (rspamd_main);
 
-       g_mime_shutdown ();
-
        return 0;
 }