From 80496d6edb1653bbc88c4403da048920ec6a5b59 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 22 Oct 2016 00:27:58 +0100 Subject: [PATCH] Replace `if (p) free(p)' with `mh_xfree(p)'. --- uip/sortm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); } -- 2.56.0