commit 7d1482a: [Minor] Fix double free as ptr_array has already dtor defined
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Dec 17 21:56:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-17 21:49:55 +0000
URL: https://github.com/rspamd/rspamd/commit/7d1482a9ff1a0d57ae2c5331b9c72ff11e8ebf7a (HEAD -> master)
[Minor] Fix double free as ptr_array has already dtor defined
---
src/libserver/spf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index ef542a7f5..053269007 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -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;
}
More information about the Commits
mailing list