From: Ralph Corderoy Date: Fri, 21 Oct 2016 23:26:57 +0000 (+0100) Subject: Replace `if (p) free(p)' with `mh_xfree(p)'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/376e8ae431ea3c23ff1940f66be6eb8f7ff2f1fe?ds=inline Replace `if (p) free(p)' with `mh_xfree(p)'. --- diff --git a/uip/mhn.c b/uip/mhn.c index 45ed007c..a3f10305 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -277,8 +277,7 @@ do_cache: case FORMSW: if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); - if (formsw) - free (formsw); + mh_xfree(formsw); formsw = getcpy (etcpath (cp)); continue;