Commit 0c2c0e86 0c2c0e86e9a101d074e68b118c0f73d69434f77b by Sergey Poznyakoff

(mu_message_set_header): Fixed memory leak

1 parent eaaf8356
......@@ -270,7 +270,7 @@ SCM_DEFINE (mu_message_set_header, "mu-message-set-header", 3, 1, 0,
}
message_get_header (msg, &hdr);
header_set_value (hdr, SCM_STRING_CHARS (HEADER), strdup (SCM_STRING_CHARS (VALUE)),
header_set_value (hdr, SCM_STRING_CHARS (HEADER), SCM_STRING_CHARS (VALUE),
replace);
return SCM_UNSPECIFIED;
}
......