From: Vsevolod Stakhov Date: Thu, 3 Feb 2011 12:50:16 +0000 (+0300) Subject: Avoid double free in librspamdclient. X-Git-Tag: 0.3.7~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f8ce164b2c8a8e86db5ca00a29086d91e11febe;p=rspamd.git Avoid double free in librspamdclient. --- diff --git a/lib/librspamdclient.c b/lib/librspamdclient.c index 6c090c57a..53c3dcc0f 100644 --- a/lib/librspamdclient.c +++ b/lib/librspamdclient.c @@ -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); }