Replace free() with mh_free0()
[mmh] / sbr / readconfig.c
index c99b7cd..ec97e1e 100644 (file)
@@ -64,7 +64,7 @@ readconfig(struct node **npp, FILE *ib, char *file, int ctx)
                                        cp = add(field, cp);
                                }
                                np->n_field = trimcpy(cp);
                                        cp = add(field, cp);
                                }
                                np->n_field = trimcpy(cp);
-                               free(cp);
+                               mh_free0(&cp);
                        } else {
                                np->n_field = trimcpy(field);
                        }
                        } else {
                                np->n_field = trimcpy(field);
                        }