From: Ralph Corderoy Date: Fri, 21 Oct 2016 23:27:22 +0000 (+0100) Subject: Replace `if (p) free(p)' with `mh_xfree(p)'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0777e6ec42f207b1a224de0ee4a2e4ae8c0b7b7b?ds=sidebyside;hp=e019034d2d52feba79f822dbd581702f483ff1c9 Replace `if (p) free(p)' with `mh_xfree(p)'. --- diff --git a/uip/mhshow.c b/uip/mhshow.c index 24052218..a118f642 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -237,8 +237,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;