]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix double free as ptr_array has already dtor defined
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Dec 2019 21:49:55 +0000 (21:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Dec 2019 21:49:55 +0000 (21:49 +0000)
src/libserver/spf.c

index ef542a7f58becbcd213e566948dc74dcc504945c..05326900708a97cd7cd3eac3eb605ad0465b39a7 100644 (file)
@@ -2221,10 +2221,8 @@ spf_process_element (struct spf_record *rec,
                                                        begin, rec->sender_domain);
 
                                        /* Pop the current addr as it is ignored */
-                                       g_free (addr->spf_string);
                                        g_ptr_array_remove_index_fast (resolved->elts,
                                                        resolved->elts->len - 1);
-                                       g_free (addr);
 
                                        return TRUE;
                                }