X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlistsbr.c;h=dd6264bf53e6c164902315babb51013ef7598cfe;hp=2a4f5041e9788c6110078336ae3c28e535c738ea;hb=dc08e69006fdf9edb458dc23885dd669f3b4a176;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c diff --git a/uip/mhlistsbr.c b/uip/mhlistsbr.c index 2a4f504..dd6264b 100644 --- a/uip/mhlistsbr.c +++ b/uip/mhlistsbr.c @@ -174,11 +174,10 @@ list_content(CT ct, int toplevel, int verbose, int debug) /* print Content-Description */ if (ct->c_descr) { char *dp; - - dp = trimcpy(cp = getcpy(ct->c_descr)); - free(cp); + dp = trimcpy(cp = mh_xstrdup(ct->c_descr)); + mh_free0(&cp); printf(LSTFMT2d1, dp); - free(dp); + mh_free0(&dp); } printf("\n"); @@ -201,7 +200,7 @@ list_content(CT ct, int toplevel, int verbose, int debug) dp = trimcpy(cp = add(ci->ci_comment, NULL)); free (cp); snprintf(buffer, sizeof(buffer), "(%s)", dp); - free(dp); + mh_free0(&dp); printf(LSTFMT2d2, buffer); } }