]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Escape literal leading full stop in man/new.man.
[nmh] / uip / mhfixmsg.c
index 2a701f0057478e467480a23af24ca073b966fd65..a0c6efda9030b61f157f95d0a8e0a4de1b9d92e8 100644 (file)
@@ -406,7 +406,7 @@ main (int argc, char **argv) {
         if (! folder) {
             folder = getfolder (1);
         }
-        maildir = m_maildir (folder);
+        maildir = mh_xstrdup(m_maildir (folder));
 
         /* chdir so that error messages, esp. from MIME parser, just
            refer to the message and not its path. */
@@ -505,6 +505,7 @@ main (int argc, char **argv) {
         status = 1;
     }
 
+    mh_xfree(maildir);
     free (cts);
 
     if (fx.fixtypes != NULL) { svector_free (fx.fixtypes); }