Replace free() with mh_free0()
[mmh] / uip / mhbuild.c
index ca7c5bf..4ff06ef 100644 (file)
@@ -807,7 +807,7 @@ use_forw:
                                if (!*cp)
                                        adios(EX_DATAERR, NULL, "empty pipe command for #%s directive", ci->ci_type);
                                cp = getcpy(cp);
                                if (!*cp)
                                        adios(EX_DATAERR, NULL, "empty pipe command for #%s directive", ci->ci_type);
                                cp = getcpy(cp);
-                               free(ci->ci_magic);
+                               mh_free0(&(ci->ci_magic));
                                ci->ci_magic = cp;
                        } else {
                                /* record filename of decoded contents */
                                ci->ci_magic = cp;
                        } else {
                                /* record filename of decoded contents */
@@ -885,7 +885,7 @@ use_forw:
                                if (!m_convert(mp, cp))
                                        exit(EX_USAGE);
                }
                                if (!m_convert(mp, cp))
                                        exit(EX_USAGE);
                }
-               free(folder);
+               mh_free0(&folder);
                free_ctinfo(ct);
 
                /*
                free_ctinfo(ct);
 
                /*