summaryrefslogtreecommitdiffabout
path: root/libmu_scm
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-18 17:14:39 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2002-11-18 17:14:39 (GMT)
commit0c2c0e86e9a101d074e68b118c0f73d69434f77b (patch) (side-by-side diff)
treeba122c4c2a4e73e4beb0adc9c5143936d6069d92 /libmu_scm
parenteaaf8356d1bf52a78956f3dcbcc7a719aa2e0ad9 (diff)
downloadmailutils-0c2c0e86e9a101d074e68b118c0f73d69434f77b.tar.gz
mailutils-0c2c0e86e9a101d074e68b118c0f73d69434f77b.tar.bz2
(mu_message_set_header): Fixed memory leak
Diffstat (limited to 'libmu_scm') (more/less context) (ignore whitespace changes)
-rw-r--r--libmu_scm/mu_message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmu_scm/mu_message.c b/libmu_scm/mu_message.c
index 76597ab..e99fb17 100644
--- a/libmu_scm/mu_message.c
+++ b/libmu_scm/mu_message.c
@@ -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;
}

Return to:

Send suggestions and report system problems to the System administrator.