X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4aace27b5eeab890bdab8e1e1725b02ab435ff6a..cf57870921b26703aad420c6741c524b33736ff1:/uip/sortm.c diff --git a/uip/sortm.c b/uip/sortm.c index 9351ec03..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); @@ -451,8 +449,7 @@ get_fields (char *datesw, int msg, struct smsg *smsg) while ((c = *cp++)) { if (isascii((unsigned char) c) && isalnum((unsigned char) c)) - *cp2++ = isupper((unsigned char) c) ? - tolower((unsigned char) c) : c; + *cp2++ = tolower((unsigned char)c); } *cp2 = '\0'; @@ -463,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); }