X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d69a4a710d33cad25f4ea75c40a90c38afe2d4e9..80496d6edb1653bbc88c4403da048920ec6a5b59:/uip/sortm.c 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); }