From: Ralph Corderoy Date: Fri, 21 Oct 2016 23:20:49 +0000 (+0100) Subject: Replace `if (p) free(p)' with `mh_xfree(p)'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/81dbd9c805607b15b0e1ee87df97367f7a274a0a Replace `if (p) free(p)' with `mh_xfree(p)'. --- diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index 078831a5..18f48987 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -30,8 +30,7 @@ new_fs (char *form, char *format, char *default_fs) struct stat st; FILE *fp; - if (formats) - free (formats); + mh_xfree(formats); if (form) { if ((fp = fopen (etcpath (form), "r")) == NULL)