X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1e54947d0c2fc6379b5bb9ef0e9e969a3c8f6204..98c2e7d95bda262ef23e8f0838e5b86d08ed4e4f:/uip/sortm.c?ds=inline diff --git a/uip/sortm.c b/uip/sortm.c index 7cc2283c..97d42e5f 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -394,10 +394,8 @@ get_fields (char *datesw, int msg, struct smsg *smsg) msg, compnum); check_failed = 1; } - if (datecomp) - free (datecomp); - if (subjcomp) - free (subjcomp); + mh_xfree(datecomp); + mh_xfree(subjcomp); fclose (in); return (0); @@ -462,8 +460,7 @@ get_fields (char *datesw, int msg, struct smsg *smsg) smsg->s_subj = subjcomp; } fclose (in); - if (datecomp) - free (datecomp); + mh_xfree(datecomp); return (1); }