]> diplodocus.org Git - nmh/blobdiff - docs/contrib/sendfrom.c
Wrapped code block of conditional statement with {}, so that the
[nmh] / docs / contrib / sendfrom.c
index 0e48db8..2ae8bd5 100644 (file)
@@ -141,7 +141,7 @@ main(int argc, char **argv) {
 
             /* Extract address and host from From: header line in draft. */
             if (get_from_header_info(msg, &addr, &host, &message) != OK) {
-                adios(msg, (char *) message);
+                adios(msg, message);
             }
 
             /* Merge in any address or host specific switches to post(1) from profile. */
@@ -298,6 +298,7 @@ get_message_header_info(FILE *in, char *format) {
     dat[3] = INT_MAX;
 
     (void) fmt_compile(new_fs(NULL, NULL, format), &fmt, 1);
+    free_fs();
 
     /*
      * Read in the message and process the header.