Commit 2dd23f6c authored by Thomas Roessler's avatar Thomas Roessler

Fixing a memory leak in mutt_prepare_envelope().

parent 1a597008
......@@ -1671,12 +1671,13 @@ void mutt_prepare_envelope (ENVELOPE *env)
* it by using an empty To: field.
*/
env->to = rfc822_new_address ();
env->to->mailbox = safe_strdup ("undisclosed-recipients:;");
env->to->group = 1;
env->to->next = rfc822_new_address ();
buffer[0] = 0;
rfc822_cat (buffer, sizeof (buffer), env->to->mailbox, RFC822Specials);
rfc822_cat (buffer, sizeof (buffer), "undisclosed-recipients:;",
RFC822Specials);
env->to->mailbox = safe_strdup (buffer);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment