From 3fb6fc0a247bbd5a035ff9291f9022bd2a998355 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 1 Jan 2019 10:35:18 -0700 Subject: * Crash when sending an email due to improper use of memory that was released by the system. --- pith/send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pith/send.c') diff --git a/pith/send.c b/pith/send.c index 75cd2bac..e72b6d98 100644 --- a/pith/send.c +++ b/pith/send.c @@ -4127,9 +4127,9 @@ remove_parameter(PARAMETER **param, char *paramname) PARAMETER om, *qm; om.next = *param; for(qm = &om; qm->next != pm; qm = qm->next); - qm->next = pm->next; - pm->next = NULL; + qm->next = copy_parameters(pm->next); mail_free_body_parameter(&pm); + *param = om.next; } } -- cgit v1.2.3-54-g00ecf