]> source.dussan.org Git - rspamd.git/commitdiff
Avoid double free in librspamdclient.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 3 Feb 2011 12:50:16 +0000 (15:50 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 3 Feb 2011 12:50:16 +0000 (15:50 +0300)
lib/librspamdclient.c

index 6c090c57aaf71f52eee05280d9f2afc18e07d94d..53c3dcc0f3cb85d21de702b8561d876e0b54ea6d 100644 (file)
@@ -72,7 +72,6 @@ metric_free_func (gpointer arg)
        struct rspamd_metric            *m = arg;
 
        g_hash_table_destroy (m->symbols);
-       g_free (m->name);
        g_free (m);
 }
 
@@ -87,7 +86,6 @@ symbol_free_func (gpointer arg)
                cur = g_list_next (cur);
        }
        g_list_free (s->options);
-       g_free (s->name);
        g_free (s);
 }