]> diplodocus.org Git - nmh/blobdiff - uip/mhlsbr.c
Improve and update comments a bit, and also improve the error messages
[nmh] / uip / mhlsbr.c
index 3bc080856d02f663c51f0a765ed35afdce34c452..9a35a816ff15ddf3056d0a39d7a5a794bc529b6f 100644 (file)
@@ -908,6 +908,7 @@ process (char *folder, char *fname, int ofilen, int ofilec)
            if (ontty != PITTY)
                SIGNAL (SIGINT, intrser);
            mhlfile (fp, cp, ofilen, ofilec);  /* FALL THROUGH! */
+            free (cp);
 
            for (ap = arglist_head; ap; ap = ap->a_next) {
                fmt_free(ap->a_fmt, 0);
@@ -922,7 +923,6 @@ process (char *folder, char *fname, int ofilen, int ofilec)
                SIGNAL (SIGINT, SIG_IGN);
            if (mhl_action == NULL && fp != stdin && fp != NULL)
                fclose (fp);
-               free (cp);
            if (holder.c_text) {
                free (holder.c_text);
                holder.c_text = NULL;