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, ...@@ -270,7 +270,7 @@ SCM_DEFINE (mu_message_set_header, "mu-message-set-header", 3, 1, 0,
270 } 270 }
271 271
272 message_get_header (msg, &hdr); 272 message_get_header (msg, &hdr);
273 header_set_value (hdr, SCM_STRING_CHARS (HEADER), strdup (SCM_STRING_CHARS (VALUE)), 273 header_set_value (hdr, SCM_STRING_CHARS (HEADER), SCM_STRING_CHARS (VALUE),
274 replace); 274 replace);
275 return SCM_UNSPECIFIED; 275 return SCM_UNSPECIFIED;
276 } 276 }
......