Context->vsize -= body->length - new_length;
body->length = new_length;
- mutt_free_body (&body->parts);
+ body_list_wipe(&body->parts);
}
return 0;
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 {
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;