]> git.marmaro.de Git - mmh/blobdiff - sbr/context_replace.c
Replace free() with mh_free0()
[mmh] / sbr / context_replace.c
index 0a31bba85aa614ac43e984d5f8ca102d993512f0..1b39b2783d1c048bdab7921a28d791c7a139899c 100644 (file)
@@ -40,7 +40,7 @@ context_replace(char *key, char *value)
                                if (!np->n_context)
                                        admonish(NULL, "bug: context_replace(key=\"%s\",value=\"%s\")", key, value);
                                if (np->n_field)
-                                       free(np->n_field);
+                                       mh_free0(&(np->n_field));
                                np->n_field = getcpy(value);
                                ctxflags |= CTXMOD;
                        }