X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/16959a4f1a98162369b9b0ca9cb890450410f2c7..459e594901d02a6f879f07a39cc698ce678aefb6:/uip/mhfixmsg.c diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 2a701f00..a0c6efda 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -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); }