(mu_message_set_header): Fixed memory leak
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment