]> diplodocus.org Git - nmh/blobdiff - sbr/context_replace.c
Alter mh-chart(7)'s NAME to be lowercase.
[nmh] / sbr / context_replace.c
index 6a270c0f56309d49f894344b6cde76c49d28b6e3..99f8ef3a512f644182e1337afe96826bea2a127e 100644 (file)
@@ -39,8 +39,7 @@ context_replace (char *key, char *value)
            if (strcmp (value, np->n_field)) {
                if (!np->n_context)
                    admonish (NULL, "bug: context_replace(key=\"%s\",value=\"%s\")", key, value);
-               if (np->n_field)
-                   free (np->n_field);
+                mh_xfree(np->n_field);
                np->n_field = mh_xstrdup(value);
                ctxflags |= CTXMOD;
            }