]> diplodocus.org Git - nmh/blobdiff - uip/repl.c
Replace `if (p) free(p)' with `mh_xfree(p)'.
[nmh] / uip / repl.c
index 5686b5bf5e6c8ec0e43caed6043aed82f6cc2dc1..72d3ddbe65ca31c1f8ca7d4d4ddd041a821a8b8e 100644 (file)
@@ -354,7 +354,7 @@ main (int argc, char **argv)
     if (ccme == -1)
        ccme = groupreply;
 
-    cwd = getcpy (pwd ());
+    cwd = mh_xstrdup(pwd ());
 
     if (!context_find ("path"))
        free (path ("./", TFOLDER));
@@ -435,7 +435,7 @@ try_it_again:
        context_save ();                        /* save the context file   */
     }
 
-    msg = file ? file : getcpy (m_name (mp->lowsel));
+    msg = file ? file : mh_xstrdup(m_name (mp->lowsel));
 
     if ((in = fopen (msg, "r")) == NULL)
        adios (msg, "unable to open");