aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-22 16:48:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-22 16:48:19 +0000
commitae6846779130c75fda82bee1692ecd4ce169fd06 (patch)
tree3352607bfb5f2538e72efd0099377a51c841315d /src/libmime/email_addr.c
parentc5a11fc210c77e7b4a6405610bcc4c78bb578581 (diff)
downloadrspamd-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.c4
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);
}