Editing the content/type of a message to an "other" type more than
once will overwrite the ct->xtype field.  Make sure to FREE it at the
start, like with subtype.
---
 parse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/parse.c b/parse.c
index 54c53f5c..5fdc906c 100644
--- a/parse.c
+++ b/parse.c
@@ -329,6 +329,7 @@ void mutt_parse_content_type(char *s, BODY *ct)
   char *subtype;
 
   FREE(&ct->subtype);
+  FREE(&ct->xtype);
   mutt_free_parameter(&ct->parameter);
 
   /* First extract any existing parameters */
-- 
2.55.0

Reply via email to