X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=ccbf3086d2ba5884b354b4e5daca31d5b8c488f0;hp=42543d3305f021ffe00b2145117dafa8c1d72583;hb=0dbe922d4298aed78dcba64b7c770f315a64505e;hpb=fdb93a08e305b8755260144807e4d45106a9cb9f diff --git a/copy.c b/copy.c index 42543d3..ccbf308 100644 --- a/copy.c +++ b/copy.c @@ -571,7 +571,7 @@ _mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body, Context->vsize -= body->length - new_length; body->length = new_length; - mutt_free_body (&body->parts); + body_list_wipe(&body->parts); } return 0; @@ -630,10 +630,10 @@ _mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body, fseeko (fp, cur->offset, 0); if (mutt_copy_bytes (fp, fpout, cur->length) == -1) { fclose (fp); - mutt_free_body (&cur); + body_list_wipe(&cur); return (-1); } - mutt_free_body (&cur); + body_list_wipe(&cur); fclose (fp); } else { @@ -658,7 +658,7 @@ _mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body, if ((flags & M_CM_UPDATE) && (flags & M_CM_NOHEADER) == 0 && new_offset != -1) { body->offset = new_offset; - mutt_free_body (&body->parts); + body_list_wipe(&body->parts); } return rc;