X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhlsbr.c;h=45d99b037d1f1e585d34187dfd881ce2c7ac6661;hb=a47dfadde7d7df81cd47856379957866ae88986b;hp=2d101d11a5dea97308f8e1f263ae8db526d95d50;hpb=096cb902c659b224590c2989020d437721d8e9e5;p=mmh diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 2d101d1..45d99b0 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -1168,7 +1168,7 @@ mcomp_format (struct mcomp *c1, struct mcomp *c2) if (!(c1->c_flags & ADDRFMT)) { if (c1->c_c_text) - c1->c_c_text->c_text = getcpy (ap); + c1->c_c_text->c_text = ap; if ((cp = strrchr(ap, '\n'))) /* drop ending newline */ if (!cp[1]) *cp = 0; @@ -1177,7 +1177,7 @@ mcomp_format (struct mcomp *c1, struct mcomp *c2) /* Don't need to append a newline, dctime() already did */ c2->c_text = getcpy (buffer); - free (ap); + /* ap is now owned by the component struct, so do NOT free it here */ return; }