diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-22 16:48:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-22 16:48:19 +0000 |
commit | ae6846779130c75fda82bee1692ecd4ce169fd06 (patch) | |
tree | 3352607bfb5f2538e72efd0099377a51c841315d /src/libmime/email_addr.c | |
parent | c5a11fc210c77e7b4a6405610bcc4c78bb578581 (diff) | |
download | rspamd-ae6846779130c75fda82bee1692ecd4ce169fd06.tar.gz rspamd-ae6846779130c75fda82bee1692ecd4ce169fd06.zip |
[Minor] Avoid double free
Diffstat (limited to 'src/libmime/email_addr.c')
-rw-r--r-- | src/libmime/email_addr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c index 75fdd9fc6..309382462 100644 --- a/src/libmime/email_addr.c +++ b/src/libmime/email_addr.c @@ -32,10 +32,6 @@ rspamd_email_addr_dtor (struct rspamd_email_address *addr) g_free ((void *)addr->user); } - if (addr->name) { - g_free ((gpointer)addr->name); - } - g_slice_free1 (sizeof (*addr), addr); } |